maps: 7.0.10 crashing on start

Describe the bug

app crashes on start

 Library not loaded: @rpath/MapboxMobileEvents.framework/MapboxMobileEvents

To Reproduce

install version 7.0.10 and try to start the app

Expected behavior

does not crash

Versions (please complete the following information):

  • Platfrom: iOS
  • Device: iPhone 11
  • React Native Version: 0.61

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 9
  • Comments: 53 (23 by maintainers)

Most upvoted comments

The interim solution if you can’t use use_frameworks! is npm install --save @react-native-mapbox-gl/maps@7.0.9 / yarn add @react-native-mapbox-gl/maps@7.0.9

Good to hear it doesn’t crash.

Unfortunately Mapbox native iOS SDK now require use_frameworks, so there is no way around it with pods afaik.

On Fri, 24 Jan 2020 at 19:02, waris117 notifications@github.com wrote:

adding use_frameworks!, solves crash on launch but it cause issue for other pods

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/react-native-mapbox-gl/maps/issues/635?email_source=notifications&email_token=ABLAPW4V33Q4V6S742E2PJDQ7MUJDA5CNFSM4KKINBM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ3TANI#issuecomment-578236469, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLAPW43H2ALKGR5SHTS2ALQ7MUJDANCNFSM4KKINBMQ .

@kristfal I’ve been following this thread for a while (as well as issue #154), and haven’t seen any updates. I know you mentioned you would implement a workaround if you didn’t hear back from Mapbox after a week or so, do you still have plans to do this?

There is PR #714 which offers a workaround for use_frameworks! please test. But it will not solve other issues in this thread.

Any updates?

It still crashes on start on real iPhone.

I reverted to 7.0.9 to get it work on both platforms.

I forked this branch at the point where the Android SDK was updated to 8.6.1, and then reverted the iOS SDK back to 5.5.0. In case you want to install that too: yarn add https://github.com/savv/maps.git#063fa06e36a31985f972fc56a860edb1778ad78b

With the code above, I was able to get the app to start on both iOS and Android.

@systemlevel yeh, I totally get that.

While it is an option, I’m not super stoked about going back to downloading the precompiled framework. The use_frameworks! requirement is a choice made by Mapbox upstream (as I see you noticed), and I hope they can provide a good pod-based experience that we can follow. I’d say we should do the following:

  1. Ask Mapbox to not require use_frameworks! and see if they can get out a change quickly
  2. If option 1 doesn’t happen shortly, I’ll reverse back from pods to a static framework

Ok, that was a bigger issue than expected. I think I fixed it.

Can you try https://github.com/react-native-mapbox-gl/maps/pull/637 ?

To install it, do yarn add https://github.com/react-native-mapbox-gl/maps.git#update-ios-framework