I'm deploying a Meteor app on both android and ios.
meteor run android-device ios-device
The app starts properly on android, while on ios it gets stuck at the splashscreen, with the following exception:
dyld: Library not loaded: #rpath/libswiftCore.dylib
Referenced from:
/var/containers/Bundle/Application/31D76A91-102C-519E-A978-44C752705AF7/MyApp.app/MyApp
Reason: no suitable image found.
**Did find:**
/private/var/containers/Bundle/Application/31D76A91-102C-519E-A978-44C752705AF7/MyApp.app/Frameworks/libswiftCore.dylib: stat() failed with errno=1
It looks like it's looking in the wrong place.
What should I do to get this fixed? (I already tried to create a new project from scratch, clean the build, etc. but no luck)
It turned out to be a bug that Apple fixed in iOS 10.3.
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?
After I have run the latest update on my iphone and then want to deploy the app to my iphone using XCode, the app is started on the iphone and then the splash screen freezes. In XCode the following is displayed:
dyld: Library not loaded: #rpath/Capacitor.framework/Capacitor
Referenced from: /private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/App
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor: code signature invalid for '/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor'
/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor: code signature invalid for '/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor'
/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor: stat() failed with errno=1
/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor: code signature invalid for '/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor'
/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor: stat() failed with errno=1
(lldb)
Many thanks in advance for your help!
This is a bug in Xcode or CocoaPods.
Free Apple dev accounts can't run apps on real devices if they use some CocoaPods frameworks (such as Capacitor, but it's affecting a lot of more).
So the only solution for now is to pay for an Apple dev account or use the simulator.
You can also try to remove use_frameworks! from ios/App/Podfile and run npx cap sync ios, but not sure if some other thing will break.
On the 24th of March Apple released iOS 13.4. This update includes a fix for the code signature issue! Please refer to the iOS 13.4 beta 3 for more information.
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
When I try to run an UI and Unit tests, I get an exception:
dyld: could not load inserted library
'/private/var/containers/Bundle/Application//AutoTestingApp.app/Frameworks/IDEBundleInjection.framework/IDEBundleInjection'
because no suitable image found. Did find:
dyld: Library not loaded: #rpath/XCTest.framework/XCTest
App builds with success but fails when running a test.
I already tried:
reinstalling Xcode
checking a provisioning profiles and a certificates
What am I doing wrong?
For what it's worth, you might be able to avoid this issue by running your test on a simulator instead of the device. Also make sure you've set your profiles correctly: i.e. Xcode 7.0 XCTest dyld: could not load inserted library IDEBundleInjection
I'm attempting to distribute an iOS 7.1 app using HockeyApp. The app works perfectly well in XCode on development devices that are attached to the computer but the app crashes on load when running from an over-the-air install from Hockey.
Here's the crash log I'm getting. As you can see, it's something to do with XCTest which I assume should not be present in an adhoc build.
Dyld Error Message:
<Error>: Library not loaded: /Developer/Library/Frameworks/XCTest.framework/XCTest
<Error>: Referenced from: /private/var/mobile/Containers/Bundle/Application/5F261236-E8C6-4F8B-9380-34445DAA3474/MyApp.app/MyApp
Reason: image not found
Dyld Version: 353.5
I've made sure there are no references to XCTest in my application target, but I still receive this error. Have I missed something obvious?
Thanks
Turns out that XCTest was included in a rogue cocoapod. By removing this, the problem was solved.
Reason: image not found.
This seems to be that you have not copied some image in the bundle. Check all the images in the app and see that it is copied in bundle. May be you have just referenced it from some folder from MAC machine.