-
-
Notifications
You must be signed in to change notification settings - Fork 841
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
[Expo] [MapLibre] module 'Mapbox' not found #1478
Comments
Looking at the document of expo plugins, you can pass parameters in config, in fact expo plugin in react-native-mapbox lacks a parameter to due correct configuration to use MapLibre instead of some manual updates in |
@EvanBacon you have added the expo plugin in this project. Is it doable ? I can handle it, but I would need some insights |
@mlecoq, can you please try this workaround: https://github.com/react-native-mapbox-gl/maps/issues/1472#issuecomment-889805609 |
@ferdicus I have replaced
with
and then made a new install and it gaves me the same result |
i'm facing a similar issue in CircleCI: /Users/distiller/project/native/node_modules/@react-native-mapbox-gl/maps/ios/RCTMGL/RCTMGLLayer.h:15:9: module 'Mapbox' not found
@import Mapbox; But it's working with XCode local (same version) |
Did you manually remove swift package in XCode? Then installed v5.11? |
I didn't add support for MapLibre, it would require a PR to add support, or just setting the package up manually and not using prebuild. In general, this plugin is "very dangerous" because it uses regexes in an application file. We're working on a system for library authors to define postinstall / preinstall blocks for their native module as part of Expo autolinking. When that is released we can rewrite this plugin to support more features and be safer. |
@ferdicus yes I have installed 5.11 manually Configuration in podfile does not install swift package, I have to install it manually through Xcode Installation of 5.11 looks fine, I have this log before crash
|
In fact I may have made an error, with 5.11 dependency +
I have now this error
|
Ok, I understand Expo plugin does not add
in podfile Adding this solves the issue, I will see if I can update expo plugin |
Closing this - please add a comment to this ticket as soon as you found the time to add something to the expo plugin @mlecoq Cheers 🍻 |
Describe the bug
I have an expo app and I would like to use MapLibre instead of MapBox
I have the following error:
To Reproduce
app.json
$RNMBGL_Use_SPM = true
pod update
in ios directoryDuring pod update I see
but no reference to MapLibre
On android I have a similar issue:
Here is an app example :
https://github.com/mlecoq/expo-maplibre
Expected behavior
I can run MapLibre with Expo
Actual behavior
MapBox is ok but MapLibre crashes
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: