Reason: no suitable image found
I have this problem before for accidentally revoked my certificate. Then all my swift projects have this problem. There are two ways to solve this:
Click on Product → Clean (or CMD + Shift + K)
Or by manually cleaning the Xcode setting files:
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf ~/Library/Caches/com.apple.dt.Xcode
dyld: Library not loaded. Reason : no suitable image found
I came across this issue today and resolved it the same way. Revoke and regenerate code signing solves this issue. But to shed some light on the "why" part of it.
Apple went ahead and changed the certificate contents. To be more precise, it added a new "OU" (organizational unit) field under Subject. By revoking and regenerating the code signing, it added the missing field and the problems went away.
Alamofire, dyld: Library not loaded:, Reason: no suitable image found. Did find:, not valid for use in
Changing the signing certificate to Development from Sign to Run Locally solved it for me.
dyld: Library not loaded: @rpath/ ... Reason: no suitable image found. updated device to latest update 13.3.1
If you're using Cocoapods you can remove or comment by # use_frameworks!
from your Podfile and reinstall it, that should fix the issue for now. dont forget to clean build folder before you run the app on update 13.3.1 device.
Related Topics
Mkmapview: Instead of Annotation Pin, a Custom View
Calling a Phone Number in Swift
How to Disable Copy Paste Option from Uitextfield Programmatically
Detecting Color of Iphone/Ipad/Ipod Touch
Run Code Only After Asynchronous Function Finishes Executing
What Are the Dangers of Method Swizzling in Objective-C
How to Write Dispatch_After Gcd in Swift 3, 4, and 5
Detect Current Device With Ui_User_Interface_Idiom() in Swift
Ios: Multi-Line Uilabel in Auto Layout
Change Default Scrolling Behavior of Uitableview Section Header
Basic Example For Sharing Text or Image With Uiactivityviewcontroller in Swift
Transparent iOS Navigation Bar
Make a Phone Call Programmatically
Uilabel - Auto-Size Label to Fit Text
Adding a View Controller as a Subview in Another View Controller
How to Programmatically Check Whether a Keyboard Is Present in iOS App