Firebase app crash. because image not found - ios

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?

Related

how to fix the crash that "dyld: Library not loaded:...Reason: image not found" due to SDK obfuscation when I launching app using simulator

There are always crash when I want to debug my projects on XCode simulator(below iOS14.0). The problem may be caused by the third lib Jumio, I also find the issues refer to official document.
How to fix it?

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.

How to get crash logs on IOS SDK Development using Sentry

I develop an IOS SDK, which developers can implement it to their apps as a framework.
I’m currently using Sentry as crash analysis tool, and the related DSYM file (produced from my SDK project) is automatically uploaded to Sentry on every build.
But the problem is when someone’s app crashes due to an error on the SDK I’m developing, Sentry returns partially symbolicated crash logs that I can barely understand what has happened and where the crash has occurred.
Is there a way that I can get the fully symbolicated crash logs, without changing the app’s project settings and without uploading anything (app’s DSYM etc.) from the original app. (Since I don’t have the app, I’m only producing the SDK)
My project has the following build settings:
Strip Debug Symbols During Copy: No
Strip Style: Debugging Symbols
Strip Linked Product: No
I was sending the DSYM's to a wrong project. I set 'export SENTRY_PROJECT=proper_project_name' then the issue has resolved.
Here is the link of the issue;
https://github.com/getsentry/sentry-cocoa/issues/277

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/Alamofire.framework/Alamofire error on device iOS 9 , not able to compile

I am using "Google analytics " SDK for iOS. The sdk forced me to set Enable bitcode from Yes to NO
When I disabled bitcode I was getting compiling error on my device (iOS 9) buut not on simulator dyld: Library not loaded: #rpath/Alamofire.framework/Alamofire
Referenced from: /var/mobile/Containers/Bundle/Application/940F4D49-6239-4645-9FAE-99D482BFA1C4/Skip It.app/Skip It
Reason: image not found
I added Alamofire via cocoaPods. TO resolve aforementioned error I added Alamofire framework in "Linked Framworks and Libraries" and made It optional, as shown in screenshot
Now I am able to run app on my device (iOS 9), but whenever code which uses Alamofire of other frameworks which are made optional, app get crashed.
I am not able to find solution. I googled a lot but no use. Please someone help
Same problem - app ran fine in simulator, but crashed on device with the same error.
In my case, it was a missing Apple WWDR Intermediate Certificate that caused the problem. The dev certificate couldn't be validated, so the provisioning profile was rejected and the device threw this error.
I downloaded and installed Apple's WWDR Intermediate Certificate, and the error went away.
So check and make sure that your keychain has all the necessary certificates and nothing is missing or expired.

Resources