Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
chuchuva opened this issue Jun 19, 2021 · 13 comments
Labels
help wanted Extra attention is needed wontfix This will not be worked on

Comments

@chuchuva
Copy link
Contributor

chuchuva commented Jun 19, 2021

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
@ferdicus
Copy link
Member

@ferdicus ferdicus added the duplicate This issue or pull request already exists label Jun 20, 2021
@chuchuva
Copy link
Contributor Author

I don't think it's a duplicate of #1139 - the app starts normally when built against react-native-mapbox-gl version 8.1.0.

Also it's a runtime crash, not a build error.

@ferdicus
Copy link
Member

sorry, my mistake - thought it might be an M1 related issue.

@ferdicus ferdicus reopened this Jun 20, 2021
@ferdicus
Copy link
Member

hey @chuchuva, did you check this blog post - seems to provide some remedy for the issue you're having:
https://medium.com/alameda-dev/installing-react-native-mapbox-navigation-in-ios-e35d43c5987a

@ferdicus
Copy link
Member

@chuchuva
Copy link
Contributor Author

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?

@ferdicus
Copy link
Member

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?

hmm 🤔
I guess we might need to update this https://github.com/react-native-mapbox-gl/react-native-mapbox-gl-static-pod @mfazekas ?

@ferdicus
Copy link
Member

ferdicus commented Jun 27, 2021

hey @chuchuva,
please check this discussion for a very similar issue and how it got resolved.

EDIT: added link

@chuchuva
Copy link
Contributor Author

@ferdicus which discussion? There is no link 🙂

@ferdicus
Copy link
Member

sorry, was day-dreaming 😅

This one: https://github.com/react-native-mapbox-gl/maps/issues/1420

@adeperio
Copy link

adeperio commented 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

@ferdicus ferdicus added help wanted Extra attention is needed and removed duplicate This issue or pull request already exists labels Aug 6, 2021
@erwannbst
Copy link

Facing same issue with Intel chip

Platform: iOS
Platform OS: iOS 15.1
Device: iPhone 12
Dev OS: OSX 12.0.1
react-native-mapbox-gl Version 8.5.0
React Native Version: 0.63.4
XCode Version: 13.1

@stale
Copy link

stale bot commented Apr 18, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Apr 18, 2022
@stale stale bot closed this as completed Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants