My Xcode project is running fine in the simulator, but when I try to run it in the device its crashing and showing the following error in console.
dyld: Library not loaded: #rpath/Alamofire.framework/Alamofire
Referenced from: /private/var/co....................
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/348225A0-
I tried with a sample project without cocoa pods, then it's running in iPhone but when installing cocoa pods then it's making the problem again.
my pod file
Related
I recently installed some pods into my iOS app (Firebase pods). The app was running fine but immediately after the 'pod install' the app crashes with the error message:
dyld: Library not loaded: #rpath/FBLPromises.framework/FBLPromises
Referenced from: /private/var/containers/Bundle/Application/82B650FF-B055-4D1C-9F24-7D37CD52351E/{app-name}.app/{app-name}
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/82B650FF-B055-4D1C-9F24-7D37CD52351E/{app-name}.app/Frameworks/FBLPromises.framework/FBLPromises: code signature invalid for '/private/var/containers/Bundle/Application/82B650FF-B055-4D1C-9F24-7D37CD52351E/{app-name}.app/Frameworks/FBLPromises.framework/FBLPromises'
I tried to set Embed & Sign in Project file > General > Frameworks, Libraries, and Embedded Content but that causes a compile error. Currently the libraries are set to Do not embed.
I also tried to create an entire new project and install the pods in that project but that causes the same error. Removing the pods from the project removes the error.
Uninstalling the app on the device, cleaning the build folder and rebuilding also did not solve the problem
Does anyone know how to fix this problem?
I am installing Alamofire, AlamofireImage and some other pods. pod target is a magplusframework, and my app target using the magplusframework which all pods have been installed.
Everything is fine but when I run the app. App got crashed and show error.
dyld: Library not loaded: #rpath/Alamofire.framework/Alamofire
Referenced from: /Users/abc/Library/Developer/Xcode/DerivedData/project-bbrgqfddrolbzefvpttmxgmmkkqn/Build/Products/Debug-iphonesimulator/magplusframework.framework/magplusframework
Reason: image not found
I also tried Always Embed Swift Standard Libraries to YES in both the target magplusframework and my app target. but it did't worked.
Thank you very much. You can check the apple root certificate in the keychain and change the trust to the system default
I solve the issue after adding the framework in embeded SDK
I'm having this crash when running on a simulator where the os cannot find the carthage frameworks
dyld: Library not loaded: #rpath/Alamofire.framework/
I see Alamodfire issue but, closed.
my xcode settings
How do app running?
source code: konojunya/github-repository-search
i included pods in my swift project and its not running on device
my device is running iOS 9.2
I'm getting this error :
dyld: Library not loaded: #rpath/PeerTalk.framework/PeerTalk
Referenced from: /var/mobile/Containers/Bundle/Application/CE466B0F-957F-484A-968F-30E6F117879B/SmartHome.app/SmartHome
Reason: image not found
i tried changing Linked Frameworks And Libraries Pods.framework to optional but it didn't worked for me
this happens with every pod i add
I am using APAdressBook cocoapods. I am getting crash on iphone 9.1 version, with this error message:
dyld: Library not loaded: #rpath/APAddressBook.framework/APAddressBook
Referenced from: /var/mobile/Containers/Bundle/Application/5D501E04-C41B-42E8-A0CE-841ADB8A1526/......
Reason: image not found
Finally, I got a solution. To solve this issue, follow these steps:
Firstly remove workspace in your project and pod file.
Update your cocoa pods and system
Reinstall all pods
quit from Xcode and run it again