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
Related
I have added adobe AEPCore.xcframework in my application and kept it as "Do not embed" in framework setting.
Screenshot:
When i kill and relaunch the application, It got crashed with following logs.
dyld: Library not loaded: #rpath/AEPAssurance.framework/AEPAssurance
Referenced from: /private/var/containers/Bundle/Application/6EF49835-678A-4B35-913B-5D88E3433DA3/app_name.app/app_name
Reason: image not found
dyld: launch, loading dependent libraries
Reason: image not found
dyld: launch, loading dependent libraries
dyld: launch, loading dependent libraries
DYLD_LIBRARY_PATH=/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
When I changed the framework setting to "Embed and Sign" Then release build fails on Jenkins.
Error:
No UUID for /var/folders/zc/jp3qpb057hgf99tct24j3ch1xk6rfy/T/XcodeDistPipeline.~~~RRv4h3/libAEPMobileServices_iOS.a(AEPMobileServices.o)
Any Help will be appreciated. Happy Coding.
I have resolved this issue by keeping the framework setting as "Embed and Sign in" and kept AEPMobileServices framework as "Do not Embed" because this framework is a static library and It should not be included in the code.
This resolves the crash from QA build and export error from the release build.
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 have an iOS app and a set of unit tests for it (XCTests) and I would like to run these tests on aws device farm on an iOS device. AWS documentation is a bit vague but I found a great post describing steps in detail (http://cleanswifter.com/amazon-device-farm-xctest-tutorial/)
If I don't use XCTAttachment inside a XCTest - everything works fine. However if I want to use it - the app fails to load .xctest bundle with the following error:
2018-03-21 11:28:46.769 Testing[259:6945] The bundle “TestingTests”
couldn’t be loaded. Try reinstalling the bundle.
2018-03-21 11:28:46.770 Testing[259:6945]
(dlopen(/var/containers/Bundle/Application/B59ACE41-3F1F-4209-983D-
415BC47F118B/Testing.app/aatp/test-bundle.xctest/TestingTests, 265):
Symbol not found: _OBJC_CLASS_$_XCTAttachment
Referenced from: /var/containers/Bundle/Application/B59ACE41-3F1F-4209-
983D-415BC47F118B/Testing.app/aatp/test-bundle.xctest/TestingTests
Expected in: /private/var/containers/Bundle/Application/B59ACE41-3F1F-
4209-983D-415BC47F118B/Testing.app/aatp/XCTest.framework/XCTest
in /var/containers/Bundle/Application/B59ACE41-3F1F-4209-983D-415BC47F118B/Testing.app/aatp/test-bundle.xctest/TestingTests)
So for some reason it fails to find XCTAttachment symbol. The same code runs fine on simulator locally. It's a single view app built with XCode 9.2, iOS Deployment target is 10.3.
Has anyone had similar issue?
I use Xcode 8.1 and after adding CocoaPods and Objective-C files to my workspace I can't run app on my device. This is error from console:
dyld: Library not loaded: #rpath/libswiftCore.dylib
Referenced from: /var/containers/Bundle/Application/EAB92875-7A43-4DA0-8CB8-1C95A3AAF8EE/See My Progress.app/See My Progress
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/EAB92875-7A43-4DA0-8CB8-1C95A3AAF8EE/See My Progress.app/Frameworks/libswiftCore.dylib: code signing blocked mmap() of '/private/var/containers/Bundle/Application/EAB92875-7A43-4DA0-8CB8-1C95A3AAF8EE/See My Progress.app/Frameworks/libswiftCore.dylib'
I have tried recreating signing certificate, enabling/disabling Always Embed Swift Standard Libraries, clearing and reinstalling Xcode. Nothing helped
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.