Library not loaded: #rpath/libswiftCore.dylib - ios

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

Related

iOS app is crashing after kill and relauch using Adobe xcframeworks

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.

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

dyld: Library not loaded: #rpath/Alamofire.framework/ carthage

I'm having this crash when running on a simulator where the os cannot find the carthage frameworks
dyld: Library not loaded: #rpath/Alamofire.framework/
I see Alamodfire issue but, closed.
my xcode settings
How do app running?
source code: konojunya/github-repository-search

dyld: could not load inserted library

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

Resources