No such module 'AppInvokeSDK' - ios

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.

Related

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 zendesk

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. :)

Firebase app crash. because image not found

I have a firebase based app that works fine when build in xcode and installed in device but when i upload it to app store for beta testing purpose it crashes on launch.
The error log is :
dyld: Library not loaded:
#rpath/GTMSessionFetcher.framework/GTMSessionFetcher
Reason: image not found
I have not designed any framework for the app.
I have been to all the other solutions and discussions in forum but nothing is resolving the matter.
has anyone else ever faced this?

AppCode run iOS simulator "Library not loaded"

I was trying AppCode 3.1. I had a iOS 8.1 project with XCode 6.1.1 with one one linked framework. The framework is SwifteriOS.framework build with Carthage (https://github.com/Carthage/Carthage) like this:
github "mattdonnelly/Swifter" == 1.4.1
Everything in XCode works fine, but when I tried to start the project in simulator with AppCode, the console gives me:
/Users/daiwei/Library/Caches/appCode31/DerivedData/Avetuc-36d98cf8/Build/Products/Debug-iphonesimulator/Avetuc.app
Simulator session started with process 17951
Debugger attached to process 17951
dyld: Library not loaded: #rpath/SwifteriOS.framework/SwifteriOS
Referenced from: /Users/daiwei/Library/Developer/CoreSimulator/Devices/C325D5F4-DDCF-41C5-9F7D-6CC17F175DA4/data/Containers/Bundle/Application/AB30E0FB-7A0F-4914-B6EB-B02B26CB5741/Avetuc.app/Avetuc
Reason: image not found
Exception: EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0))
I can see the simulator launching and showing the launch screen of the app. But app just crash with above message.
image not found usually refers to the framework's binary not being loaded, usually because it's not actually ever copied over to the app's binary.
It could be that Xcode is properly copying over the framework for you, while AppCode doesn't have the instructions to do so. Make sure to follow the Run Script phase instructions (https://github.com/Carthage/Carthage#if-youre-building-for-ios) so that you know for sure that the frameworks will make it over. Also, ensure that the library shows up in "Linked Frameworks and Libraries" as well.

iOS dyld: Library not loaded: /usr/lib/libc++.1.dylib

The iOS application i'm creating uses ZXing, Couchbase and Couchcocoa. Originally I only needed libc++.dylib and I can run the program using the Simulator.
When I tried running on the device, it builds successfully but then crashes and I get the log:
dyld: Library not loaded: /usr/lib/libc++.1.dylib
Referenced from: /var/mobile/Applications/E6AD6AC4-4081-4608-86FB-306D86DCFD35/qrcard.app/qrcard
Reason: image not found
I then added libc++.1.dylib in the link binary libraries. And I still get the same logs.
Have you tried just renaming your main.m to main.mm? That will tell Xcode to link against C++ dependences itself. I'm wondering if there are load path flags you have to give the build if you try to explicitly name C++ libraries (which isn't even all that well defined in Xcode anymore since Apple now provides multiple versions of at least some of the C++ libraries.)
It may not be the only way, just the only one I've used. But I've never gotten an error with this method.

Resources