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)
The interim solution if you can’t use
use_frameworks!isnpm install --save @react-native-mapbox-gl/maps@7.0.9/yarn add @react-native-mapbox-gl/maps@7.0.9Good 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:
@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:
use_frameworks!and see if they can get out a change quicklyOk, 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