signal SIGABRT - dyld: Library not loaded: @rpath/MapboxMobileEvents.framework/MapboxMobileEvents
See original GitHub issueThe app crashes on startup on iOS 14.4 simulator. Error:
dyld: Library not loaded: @rpath/MapboxMobileEvents.framework/MapboxMobileEvents
XCode console output:
dyld: Library not loaded: @rpath/MapboxMobileEvents.framework/MapboxMobileEvents
Referenced from: /Users/pavel/Library/Developer/CoreSimulator/Devices/2BB1C101-B7FB-4533-A7C2-83FB2C2741E9/data/Containers/Bundle/Application/23CB6BC2-772F-491E-A5A2-953D876979A4/testmapbox.app/Frameworks/Mapbox.framework/Mapbox
Reason: image not found
dyld: launch, loading dependent libraries
DYLD_SHARED_CACHE_DIR=/Users/pavel/Library/Developer/CoreSimulator/Caches/dyld/19H2/com.apple.CoreSimulator.SimRuntime.iOS-14-4.18D46
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/pavel/Library/Developer/Xcode/DerivedData/testmapbox-cfnflfrokkfcaahjccftfhtwirjw/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/CoreSimulat
(lldb)
To Reproduce
npx react-native init testmapbox
cd testmapbox
npm install react-native-mapbox-gl/maps#master --save
npx pod-install
Open workspace in XCode. Run project on iOS 14.4 simulator.
Expected behavior
No crash
Actual behavior
Crash
Versions:
- Platform: iOS
- Platform OS: iOS 14.4
- Device: iPhone 11 simulator
- Emulator/ Simulator: yes
- Dev OS: OSX 10.15.7
- react-native-mapbox-gl Version 8.2.0-beta2
- React Native Version: 0.64.2
- XCode Version: 12.4
- Cocoapods version: 1.10.1
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:13 (10 by maintainers)
Top Results From Across the Web
Issues - GitHub
The app crashes on startup on iOS 14.4 simulator. Error: dyld: Library not loaded: @rpath/MapboxMobileEvents.framework/MapboxMobileEvents ...
Read more >dyld: Library not loaded | Apple Developer Forums
So yesterday I installed iOS 13.3.1 on my iPhone XR and macOS 10.15.3 on my iMac. Then, I've been getting this error in...
Read more >iOS app with framework crashed on device, dyld: Library not ...
Build and run an app on the device. The app immediate crashed upon launching, here is console log: dyld: Library not loaded: @rpath/ ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you! I was able to work around this issue by adding this line to ios/Podfile:
However it would be good to get to the bottom of this. As I said version 8.1.0 doesn’t this issue so it must be a regression, right?
Can confirm I am experiencing this too. Similar conditions as @chuchuva. The workarounds don’t work for me unfortunately and generates other errors. My setup:
Platform: iOS Platform OS: iOS 14.5 Device: iPhone 12 simulator Emulator/ Simulator: yes Dev OS: OSX 11.2.3 react-native-mapbox-gl Version 8.2.1 React Native Version: 0.64.2 XCode Version: 12.5.1