question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

signal SIGABRT - dyld: Library not loaded: @rpath/MapboxMobileEvents.framework/MapboxMobileEvents

See original GitHub issue

The 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

6reactions
chuchuvacommented, Jun 21, 2021

Thank you! I was able to work around this issue by adding this line to ios/Podfile:

pod '@react-native-mapbox-gl-mapbox-static', '~> 10.0.0-beta.12'

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?

1reaction
adeperiocommented, Jul 5, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found