Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Crash on app launch by "dyld: Library not loaded" #738

Open
nukka123 opened this issue Feb 7, 2020 · 6 comments
Open

[iOS] Crash on app launch by "dyld: Library not loaded" #738

nukka123 opened this issue Feb 7, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@nukka123
Copy link
Contributor

nukka123 commented Feb 7, 2020

Overview (Required)

  • [iOS] Crash on app launch by "dyld: Library not loaded".

Steps To Reproduce

  1. Modify the xode project Signing settings.
    • Tream: my Personal Team account.
    • Bundle Identifier: nukka123.io.github.droidkaigi.confsched2020.DroidKaigi-2020
  2. Build and Run to real iPhone device.
  3. Crash on app launch by "dyld: Library not loaded".

Expected behavior

Launch without crash.

Env:

  • Device: iPhone11 pro
  • OS: iOS 13.3.1
  • Xcode: 13.1.1
  • master branch, 369fcd9

Log

dyld: Library not loaded: @rpath/MDFInternationalization.framework/MDFInternationalization
  Referenced from: /private/var/containers/Bundle/Application/3536DB72-9CBD-4A1D-82A2-43DA43246E87/DroidKaigi 2020.app/DroidKaigi 2020
  Reason: no suitable image found.  Did find:
	/private/var/containers/Bundle/Application/3536DB72-9CBD-4A1D-82A2-43DA43246E87/DroidKaigi 2020.app/Frameworks/MDFInternationalization.framework/MDFInternationalization: code signature invalid for '/private/var/containers/Bundle/Application/3536DB72-9CBD-4A1D-82A2-43DA43246E87/DroidKaigi 2020.app/Frameworks/MDFInternationalization.framework/MDFInternationalization'

	/private/var/containers/Bundle/Application/3536DB72-9CBD-4A1D-82A2-43DA43246E87/DroidKaigi 2020.app/Frameworks/MDFInternationalization.framework/MDFInternationalization: code signature invalid for '/private/var/containers/Bundle/Application/3536DB72-9CBD-4A1D-82A2-43DA43246E87/DroidKaigi 2020.app/Frameworks/MDFInternationalization.framework/MDFInternationalization'

	/private/var/containers/Bundle/Application/3536DB72-9CBD-4A1D-82A2-43DA43246E87/DroidKaigi 2020.app/Frameworks/MDFInternationalization.framework/MDFInternationalization: stat() failed with errno=1
	/private/var/containers/Bundle/Application/3536DB72-9CBD-4A1D-82A2-43DA43246E87/DroidKaigi 2020.app/Frameworks/MDFInternationalization.framework/MDFInternationalization: code signature invalid for '/private/var/containers/Bundle/Application/3536DB72-9CBD-4A1D-82A2-43DA43246E87/DroidKaigi 2020.app/Frameworks/MDFInternationalization.framework/MDFInternationalization'

	/private/var/containers/Bundle/Application/3536DB72-9CBD-4A1D-82A2-43DA43246E87/DroidKaigi 2020.app/Frameworks/MDFInternationalization.framework/MDFInternationalization: stat() failed with errno=1

Similar (same?) issues

@nukka123 nukka123 added the bug Something isn't working label Feb 7, 2020
@ry-itto
Copy link
Member

ry-itto commented Feb 7, 2020

@nukka123
Can you try cleaning Derived Data directory? 🙏
Certainly, I fixed by this.

@nukka123
Copy link
Contributor Author

nukka123 commented Feb 7, 2020

@ry-itto
I've tried again with complete clean the Derived Data directory.
But it could not to resolve... 😢

@ry-itto
Copy link
Member

ry-itto commented Feb 7, 2020

Hmm...
I don't have any idea. Sorry... I encountered this problem some times, I think this is cache problem, but this may not... 🤔

@nukka123
Copy link
Contributor Author

nukka123 commented Feb 7, 2020

このコメントによれば、iOS 13.3.1 の問題のようです。(あるいはXcode?)

This is an issue with iOS 13.3.1 on a real device, not the simulator. This should not impact apps that are already distributed to the App Store (meaning: your customers are not hitting this crash).
...
You can:
Use a non-Personal Team provisioning profile.
Run on the 13.3.1 simulator.
Test on a real iOS device running 13.3 or lower.

@waleedafifi90
Copy link

This may fix your problem
1- Comment use_frameworks!
2- Use use_modular_headers!
3- Add ,:modular_headers => true after each pod like this
pod 'Firebase',:modular_headers => true
all of this in Pod file it's work for me I am running iOS 13.3.1 on iPhone 7, Xcode 11.3.1
Hope it's help ^_^

@developeranshul1986
Copy link

When I commented this line
use_modular_headers!

after that I am getting the error like below
3 warnings generated.
/Users/xyz/Documents/FlutterSDK/flutter/.pub-cache/hosted/pub.dartla
ng.org/app_settings-4.0.4/ios/Classes/AppSettingsPlugin.m:2:9: fatal error:
'app_settings/app_settings-Swift.h' file not found
#import <app_settings/app_settings-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning build
note: Constructing build description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants