Conference-app-2020: [iOS] Crash on app launch by "dyld: Library not loaded"

Created on 7 Feb 2020  ·  6Comments  ·  Source: DroidKaigi/conference-app-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, 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

bug

All 6 comments

@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

^~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning build
note: Constructing build description

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FujiKinaga picture FujiKinaga  ·  4Comments

takahirom picture takahirom  ·  4Comments

takahirom picture takahirom  ·  5Comments

KeithYokoma picture KeithYokoma  ·  6Comments

ry-itto picture ry-itto  ·  4Comments