problem while installing app on iphone - iphone

H everyone
i have up graded my xcode to xcode 4 & i am trying to install a app through this xcode on to a iphone but i am getting following error & i am unable to launch the app
warning: Unable to read symbols for /var/mobile/Applications/7A08B9EA-DD46-47B4-8E0C-BF081BDB1F4B/QIA All.app/QIA All (file not found).
dyld: Library not loaded: /System/Library/Frameworks/QuickLook.framework/QuickLook
Referenced from: /var/mobile/Applications/7A08B9EA-DD46-47B4-8E0C-BF081BDB1F4B/QIA All.app/QIA All
Reason: image not found
i have following warning in my app
ld: warning: directory not found for option '-F/Developer/new xcode/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/System/Library/PrivateFrameworks'
is from this warning
how can i fix this?,,,thanx in advance

you have to check that all images and framework are included friend. may b any image is missing that is deleted from project folder .check if you get any image in red then add that image

Looks like your app is still trying to link to the 3.1.2 SDK. You need to change the SDK in the project settings to Base SDK: Latest (iOS 4.3). Also make sure to clear out any settings in the target for this value so that it inherits it properly.

Related

Xcode error: building for iOS Simulator, but linking in object file built for iOS

Never had a lot of problems until the time to buy Macbook Air M1. Just yesterday my app was build without any error in Xcode 12.4. I did not make any special changes and today build failed:
/Users/userName/Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/userName/Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a' for architecture arm64clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please can you help me, how to solve it?
Looks like a missing Arm64 simulator slice in the OpenSSL-Universal CocoaPods distribution.
Make sure that you're using the latest version with pod update and contact the OpenSSL-Universal if there's still an issue.

Flutter Xcode 12 archive build fails with Undefined symbol: _OBJC_CLASS_$_STPAPIClient

Flutter version 1.22.2
Xcode 12.1
the app builds fine in the simulator but trying to generate an archive for App Store fails with: building for iOS-armv7 but attempting to link with file built for iOS-arm64
Undefined symbols for architecture armv7:
"OBJC_CLASS$_STPAPIClient", referenced from:
objc-class-ref in TPSStripeManager.o
I have deployment target to 11.0.
XCode->Pods->stripe_payment->Build Setting. Change the iOS Deployment Target to 11.0. Without knowing exact reason for the problem however this worked for me.
I have attached the xcode ss.
Xcode Pods:Adding armv7 to excluded architectures solved the issue.
This works for me.

App crash - AuthenticationServices Library not loaded

I'm trying to use AppAuth-iOS dev-logout branch and I tested on simulator 10.3.1.
When I try to run the code I get this crash:
dyld: Library not loaded:
/System/Library/Frameworks/AuthenticationServices.framework/AuthenticationServices
Reason: image not found
AuthenticationServices only appeared in iOS 12.0+, so this may be the cause of the crash.
Link to github issue: https://github.com/openid/AppAuth-iOS/issues/350
Thanks for any hint!
You can mark the AuthenticationServices.framework as Optional in the Linked Frameworks and Libraries section. This solved the problem for me.
You can add the library/framework to the Embedded libraries and frameworks section. Also have a look at OS X Framework Library not loaded: 'Image not found'
Just in case anyone is as dumb as I am:
I was running a newer version of the Xcode Beta than my device's iOS version. Updating my device fixed this is

Running on a real device (iPhone) linker error for an archive file

I'm using CorePlot in my project by adding the project file directly in the project. When I compile it for simulator it is fine, but when I try to compile it for the real device it says:
"clang: error: no such file or directory:
'/Users/t2wu/Library/Developer/Xcode/DerivedData/HRM-fqohcvzyvosuqmerfynaixyulpta/Build/Products/Debug-iphoneos/libCorePlot-CocoaTouch.a'"
What could be the problem? I'm using iPhone 4S with iOS 6 SDK with architecture set to Standard(armv7, armv7s) for both the super project and the embedded CorePlot.
In Target Project Build Setting Make Buidl Architecture Only = YES. This will solve your problem.
Clang is the compiler. Make sure you have a libCorePlot-CocoaTouch.a file in your project.

Compiling Issue with SFBAudioEngine

I want to play Flac files in ios and downloaded code from: SFBAudioEngine
I added frameworks for mac os and it build successfully but when I run app it crashes and gives
dyld: Library not loaded: #rpath/dumb.framework/Versions/A/dumb
Referenced from: /Users/Library/Developer/Xcode/DerivedData/SFBAudioEngine-frrtbwxsqekjtmekpdfikqaqcsso/Build/Products/Debug/SimplePlayer.app/Contents/MacOS/SimplePlayer
Reason: image not found
And When I am trying to make build for ios app It is giving error
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool failed with exit code 1
Please help me to run this app .
It looks like the dumb framework is not being loaded. You need to make sure it's located at this path on your computer:
#rpath/dumb.framework
And make sure this file exists before running your app:
#rpath/dumb.framework/Versions/A/dumb
Just put the Frameworks folder inside the SFBAudioEngine folder. check for #rpath details