dyld: Library not loaded zendesk - ios

On adding Zendesk to a project in my app, the app compiles fine, but on launching it, the app crashes with the following error:
dyld: Library not loaded: #rpath/ZendeskCoreSDK.framework/ZendeskCoreSDK
Referenced from: /var/containers/Bundle/Application/54F97442-93B5-469E-A069-5F91C4689249/App.app/App
Reason: image not found
I am quite sure I have followed all the instructions, but this just refuses to work

:)
In your project, goto build phases and the embedded frameworks section, find the 3 Zendesk frameworks in the file list and drag them into this section.
it will work now. :)

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.

Error while compiling the project with an Xcode 9.3

I have a problem when I try to compile my project on real device. It says build succeeded and then I get the error below.
dyld: Library not loaded: #rpath/Agrume.framework/Agrume Referenced
from:
/var/containers/Bundle/Application/E3ABC8B5-A3C0-4FE3-B395-6A171C9E0EF6/myapp.app/myapp
Reason: image not found (lldb)
I tried to add the framework in the settings Build Phases/Build settings but it doesn't work.
You are probably not embedding the framework in your application.
Look at the General settings for your application target. There should be a section called "embedded binaries". Add your linked framework to that, and it should be OK. Here's an example:
I had the same issue and it was only fixed by rebuilding the used framework with newer swift version (4.0.3 -> 4.1). I had to download the library source and make a build myself.

Library not loaded #rpath/AFNetworking iOS

I've facing very strange issue while installing my app onto device using custom (my own created) framework.
MyFramework uses AFNetworking, Dropbox and Google drive from pods, and I just dragged MyFramework into my app and just build(which is fine) but on installation this give me error
dyld: Library not loaded: #rpath/AFNetworking.framework/AFNetworking
Referenced from: /private/var/containers.../MyFramework.framework/MyFramework
Reason: image not found
MyApp has nothing just new app and added MyFramework into Embedded Binaries.
I googled and found many many solution (mostly say that delete drive data or Clean build). Even this https://github.com/AFNetworking/AFNetworking/issues/3986 own issue in github AFNetworking library, tried but no remedy.
Maybe you can try to remove AFNetworking and install again, if you are using CocoaPods.
I found solution.
Find your Target --> Build Phases --> Add New Copy Files Phase -->Choose Destination Option,Frameworks --> Click add AFNetworking.framework --> Done.
Hope its useful.

dyld: Library not loaded realm

i added a framework that i developed in ios to the new project. I tried to make the app universal (one framework work both in device and simulator) according to this tutorial
create an ios universal framework
. When i run my demo project using this universal framework i get this errors
dyld: Library not loaded: #rpath/Realm.framework/Realm
Referenced from: /private/var/mobile/Containers/Bundle/Application/DDF71B22-F535-43E5-B770-D3425419B108/DemoSDk2.app/Frameworks/#######.framework/#########
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/DDF71B22-F535-43E5-B770-D3425419B108/DemoSDk2.app/Frameworks/########.framework/Frameworks/Realm.framework/Realm: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/DDF71B22-F535-43E5-B770-D3425419B108/DemoSDk2.app/Frameworks/##########.framework/Frameworks/Realm.framework/Realm'
both in device and simulator the demo app crash
Dynamic frameworks are by definition not statically linked into binaries that link them.
This means dynamic frameworks must be shipped with the binaries that link them.
The typical way to do this for iOS apps is to have a build phase to copy the framework into your app bundle after compilation.
Due to restrictions by Apple for app store deployment it is not possible to dynamically link frameworks. This is an issue that is common amongst frameworks and not specific to Realm.
The following link is from Realm's GitHub discussion and explains in further detail and offers some work arounds (though none are particularly elegant.
https://github.com/realm/realm-cocoa/issues/3051

Implement AdobeCreativeSDK in an iOS project - can't validate archive

I need to implement Aviary photo editing in my iOS project. For that you need to add the AdobeCreativeSDKCore.framework and AdobeCreativeSDKImage.framework. I tried following their guide here and I also tried via cocoapods.
Adding the frameworks manually
When I add the frameworks manually, everything works fine, but when I try to validate the archive or upload it to testflight I get many errors. I get this as long as the frameworks are imported no matter if I try to use them in code or not. You can see the errors in this screenshot:
Using Cocoapods
I add the 2 pods, install and then add the "strip frameworks" script provided in the frameworks (as per Adobe's instructions). Like this I can archive, validate and upload without a problem, but when I use them in code and run the app it crashes on launch with the following error:
dyld: Library not loaded: #rpath/AdobeCreativeSDKCore.framework/AdobeCreativeSDKCore
Referenced from: /Users/rado/Library/Developer/CoreSimulator/Devices/13E81DE6-83DE-4ABC-9AEE-C498D25D8F2C/data/Containers/Bundle/Application/829ACA06-8150-4745-82F7-1ED4F86884E7/CrowdGraf.app/CrowdGraf
Reason: image not found
(lldb)
I'm stuck on this for over a week now. Any ideas how to fix this?

Resources