conference-app-2020
conference-app-2020 copied to clipboard
[iOS] Crash on app launch by "dyld: Library not loaded"
Overview (Required)
- [iOS] Crash on app launch by "dyld: Library not loaded".
Steps To Reproduce
- Modify the xode project Signing settings.
- Tream: my Personal Team account.
- Bundle Identifier:
nukka123.io.github.droidkaigi.confsched2020.DroidKaigi-2020
- Build and Run to real iPhone device.
- 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, 369fcd9a63cf573b1e603df70f10b6a0a942711a
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
Can you try cleaning Derived Data
directory? 🙏
Certainly, I fixed by this.
@ry-itto
I've tried again with complete clean the Derived Data
directory.
But it could not to resolve... 😢
Hmm... I don't have any idea. Sorry... I encountered this problem some times, I think this is cache problem, but this may not... 🤔
このコメントによれば、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.
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 ^_^
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