Xcode error: dyld: Library not loaded - ios

I am using the PhotoEditorSDK and I am getting an error in Xcode 9.0:
dyld: Library not loaded: #rpath/libswiftAVFoundation.dylib
Referenced from: /Users/.../PhotoEditorSDK.framework/PhotoEditorSDK
Reason: image not found
It showed up only when I updated the new Xcode, also I have tried all the stuff for clearing cache, derived data, setting the always embed swift libraries to true, but nothing works.

Installing the new version of the framework fixed the issue.

Related

No such module 'AppInvokeSDK'

Paytm All-in-one SDK integrated successfully and working fine in simulator but when I am trying to run in real device, its giving me an error that No such module 'AppInvokeSDK'
Cannot run in real device (iPhone 8)
Following error getting in log:
dyld: Library not loaded: #rpath/AppInvokeSDK.framework/AppInvokeSDK
Referenced from: /private/var/containers/Bundle/Application/840EAA6B-AB7E-4712-B77F-B6E625E899D2/app.app/app
Reason: image not found
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
here is the screenshot:
I got to know later, By mistake I put framework in somewhere else. Actual place for external framework is inside the "Framework" folder in Xcode.

Xcode Crash IOS APP : dyld: Library not loaded, Reason: image not found

I have Integrated a Framework in Xcode (custom framework). After launching application it is crashing with above error.
What I have tried so far is:
Added framework in Embedded Binaries Section in General tab.
"Always embed swift standard Libraries" Flag to true.
Error Message :
dyld: Library not loaded: #rpath/libclang_rt.asan_ios_dynamic.dylib
Referenced from: /private/var/containers/Bundle/Application/F4839C88-8BF0-4E90-8B24-C71F3A008FCC/wificonfig.app/Frameworks/MedallionNet.framework/MedallionNet
Reason: image not found**

dyld: Library not loaded: Reason: image not found

I know there is plenty of topics on this issue, to be honest, I think I have read all of them in the past 3 days, but none of them help me to solve my issue.
I have to build an iOS app implementing a custom framework, build by my own.
When I want to run my app on a real device, here is what I get (XXX is replaced for confidentiality of course) :
dyld: Library not loaded: #rpath/libswiftCore.dylib
Referenced from: /private/var/containers/Bundle/Application/0FCB15D6-B961-47A6-96A1-2CA896634277/XXX.app/Frameworks/XXX.framework/XXX
Reason: image not found
Following all topics, I tried to put the framework in the embedded binaries and stuff, but nothing worked...
If someone has another idea...I'll take it !
I finally found a solution.
The framework was build with an older version of xCode (8.2), so I downgraded my project in xCode 8.2, and the issue vanished...not sure this is the best way to resolve it, but it works.

dyld: Library not loaded: #rpath/libswiftCore.dylib doesn't get solved by editting runpaths and Embedded Content Contains Swift Code

okay this websites have bunch of questions about the problem same as the title I post a new one cuz there's no post which help me..
I coded the whole project in xcode 7.3. And I'm trying to run it in both iOS 9.3.5 and 10.0.2.
Both prompted the error message below and it has been solved in 10.0.2, by downloading a certificate in https://www.apple.com/certificateauthority/ as advised in dyld: Library not loaded: #rpath/libswiftCore.dylib. But 9.3.5 still doesn't work.
dyld: Library not loaded: #rpath/libswiftCore.dylib
Referenced from: /var/containers/Bundle/Application/69EF41F7-6DEA-49DC-A330-2356895A3267/이모저모.app/이모저모
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/69EF41F7-6DEA-49DC-A330-2356895A3267/이모저모.app/Frameworks/libswiftCore.dylib: code signature invalid for '/private/var/containers/Bundle/Application/69EF41F7-6DEA-49DC-A330-2356895A3267/이모저모.app/Frameworks/libswiftCore.dylib'
/private/var/containers/Bundle/Application/69EF41F7-6DEA-49DC-A330-2356895A3267/이모저모.app/Frameworks/libswiftCore.dylib: code signature invalid for '/private/var/containers/Bundle/Application/69EF41F7-6DEA-49DC-A330-2356895A3267/이모저모.app/Frameworks/libswiftCore.dylib'
/private/var/containers/Bundle/Application/69EF41F7-6DEA-49DC-A330-2356895A3267/이모저모.app/Frameworks/libswiftCore.dylib: code signature invalid for '/private/var/containers/Bundle/Application/69EF41F7-6DEA-49DC-A330-2356895A3267/이모저모.app/Frameworks/libswiftCore.dylib'
What I first referenced is dyld: Library not loaded: #rpath/libswift_stdlib_core.dylib. I set Runpath search paths as #executable_path/frameworks. In Xcode 8.0 there is no Embedded Content Contains Swift Code so I just added #executable_path/Frameworks and it was ok, but in 7.3 it still doesn't work.
Any idea? None of the questions with the same topic does not help.

Adding 3rd party libraries in CLI app - Swift

I have a CLI app made in swift through Xcode 7.3 beta 2 and Swift 2.2. I'm trying to add a library in my app called OAuthSwift by manually copying it and adding it in my target.
Trying to run the app, I keep on getting this error:
dyld: Library not loaded: #rpath/libswiftAppKit.dylib
Referenced from: /Users/username/Library/Developer/Xcode/DerivedData/Vapor-bxotywnuvdhyupfqfmhdgtykiqlj/Build/Products/Debug/OAuthSwift.framework/Versions/A/OAuthSwift
Reason: image not found
Would any of you know how to get around this?

Resources