Missing framework crash
andrebng opened this issue · comments
What did you do?
Building, archiving and submitting with Xcode works. But we also use Bitrise and noticed that these builds end up in crashes when opening the app. The same happens for development distributions. I found this in the logs:
`Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Description: DYLD, dyld: Using shared cache: 14717012-2E84-3416-8150-5E937791EE50 | dependent dylib '@rpath/Hero.framework/Hero' not found for '/private/var/containers/Bundle/Application/2CCE0800-23D5-4A95-875F-F2382ECC4097/MyApp.app/MyApp', tried but didn't find: '/usr/lib/swift/Hero.framework/Hero' '/private/var/containers/Bundle/Application/2CCE0800-23D5-4A95-875F-F2382ECC4097/MyApp.app/Frameworks/Hero.framework/Hero' '@rpath/Hero.framework/Hero' '/System/Library/Frameworks/Hero.framework/Hero'
Highlighted by Thread: 0
Backtrace not available
Unknown thread crashed with ARM Thread State (64-bit):`
What did you expect to happen?
Opening the app and not crash. The framework to be embedded correctly
What happened instead?
App crashes right after opening.
General Information
- Hero Version:
1.5.0
-
iOS Version(s):
14.4.2 -
Swift Version:
Swift 5 -
Devices/Simulators:
iPhone 12 -
Reproducible in Examples? (Yes/No):
This seems to be the problem:
https://developer.apple.com/documentation/xcode/diagnosing_issues_using_crash_reports_and_device_logs/identifying_the_cause_of_common_crashes/addressing_missing_framework_crashes
I embedded the Hero framework with "Embed and Sign", that seemed to do it. I removed and re-installed it via SPM before.