touchlab / KaMPKit

KaMP Kit by Touchlab. A collection of code & tools designed to get your mobile team started quickly w/Kotlin Multiplatform
https://touchlab.co/
Apache License 2.0
2.2k stars 199 forks source link

Can't run sample setup on real device. #86

Closed icarumbas closed 4 years ago

icarumbas commented 4 years ago

Environment

Device: iPhone 7 iOS: 13.3.1 XCode: 11.4 SWIFT: 5 Commit: master HEAD, up to date

Problem

Template builds and runs fine on emulator, but when i try to run it on real device it falls with given error: (lldb)

dyld: Library not loaded: @rpath/shared.framework/shared
  Referenced from: /private/var/containers/Bundle/Application/1AA91D4E-5285-434E-805F-87A8DF71B4A8/KaMPStarteriOS.app/KaMPStarteriOS
  Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/1AA91D4E-5285-434E-805F-87A8DF71B4A8/KaMPStarteriOS.app/Frameworks/shared.framework/shared: code signature invalid for '/private/var/containers/Bundle/Application/1AA91D4E-5285-434E-805F-87A8DF71B4A8/KaMPStarteriOS.app/Frameworks/shared.framework/shared'

    /private/var/containers/Bundle/Application/1AA91D4E-5285-434E-805F-87A8DF71B4A8/KaMPStarteriOS.app/Frameworks/shared.framework/shared: stat() failed with errno=25
    /private/var/containers/Bundle/Application/1AA91D4E-5285-434E-805F-87A8DF71B4A8/KaMPStarteriOS.app/Frameworks/shared.framework/shared: code signature invalid for '/private/var/containers/Bundle/Application/1AA91D4E-5285-434E-805F-87A8DF71B4A8/KaMPStarteriOS.app/Frameworks/shared.framework/shared'

    /private/var/containers/Bundle/Application/1AA91D4E-5285-434E-805F-87A8DF71B4A8/KaMPStarteriOS.app/Frameworks/shared.framework/shared: stat() failed with errno=1
    /private/var/containers/Bundle/Application/1AA91D4E-5285-434E-805F-87A8DF71B4A8/KaMPStarteriOS.app/Frameworks/shared.framework/shared: code signature invalid for '/private/var/containers/Bundle/Application/1AA91D4E-5285-434E-805F-87A8DF71B4A8/KaMPStarteriOS.app/Frameworks/shared.framework/shared'

    /private/var/containers/Bundle/Application/1AA91D4E-5285-434E-805F-87A8DF71B4A8/KaMPStarteriOS.app/Frameworks/shared.framework/shared: stat() failed with errno=1
icarumbas commented 4 years ago

Looks like my local issue

icarumbas commented 4 years ago

For those who're still getting this issue: This belongs to Apple and appears only on iOS 13.3.1 Simple upgrading to iOS 13.4 solves this.

BulatMukhutdinov commented 3 years ago

The same issue on simulator iPhone 12 iOS 14.3 @russhwolf could you please take a look

dyld: Library not loaded: @rpath/shared.framework/shared
  Referenced from: /Users/user/Library/Developer/CoreSimulator/Devices/8D6421A4-31C3-4873-B376-6390A153FA8A/data/Containers/Bundle/Application/97C8C584-BDA0-4270-B74F-36998683F4BE/KaMPKitiOS.app/KaMPKitiOS
  Reason: image not found
dyld: launch, loading dependent libraries
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD_LIBRARY_PATH=/Users/user/Library/Developer/Xcode/DerivedData/KaMPKitiOS-etiuuxwowkpgdieidpmypmihjsay/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Applications/Xcode.app/C