iOS 9.1 crash due to APAddressBook book (image not found) - ios

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

Related

Xcode 11: App crashes on start after 'pod install' with dyld: Library not loaded: #rpath/

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?

Not running in Device with Cocoa pods

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

dyld: Library not loaded: #rpath/Alamofire.framework/Alamofire and AlamofireImage

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

CSYMGenerator Can't Open XCode Project Run

I got
CSYMGenerator cannot be Opened because of a problem
message while running my project.
OS: High Sierra v10.13
XCode: 9.0
Termination Reason: DYLD, [0x1] Library missing
Application Specific Information: dyld: launch, loading dependent
libraries
Dyld Error Message: Library not loaded:
#rpath/CrashlyticsLanguageSupport.framework/Versions/A/CrashlyticsLanguageSupport
Referenced from:
/Applications/Fabric.app/Contents/XPCServices/CSYMGenerator.xpc/Contents/MacOS/CSYMGenerator
Reason: image not found
Crashlytics Version 3.8.3 (120)
Fabric Version 2.6.14 (1285)
I just deleted the Fabric app and this error went away.
According to a post here by Mike Bonnel who works at Google on Crashlytics at Google, Fabric app has not been used in years.
I just ran into the same problem. To get it to work I ran
rm -rf ~/Library/Caches/com.crashlytics.mac
AND I deleted the Fabric app off my computer.
This is not an ideal workaround, but at least I can build and run my app now. This is definitely not ideal, but the issue went away. I was using XCode 8.2.1 on the latest High Sierra.

i included pods in my swift project and its not running on device (ios 9.2)

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

Resources