Reason: No Suitable Image Found

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

Sample Image

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



Leave a reply



Submit