maps: Expo installation instructions fail with error: "Setting $RNMapboxMapsImpl is now required"
Environment
- Dev OS: macOS 14.1.2
Steps to reproduce
- Follow the exact instructions at: https://github.com/rnmapbox/maps/blob/main/plugin/install.md#plugin-configuration
- Run
npx expo run:ios
The error message is quite cryptic, and the provided URL (https://github.com/rnmapbox/maps/wiki/Deprecated-RNMapboxImpl-Unset#ios) isn’t very clear on how to fix this either. It just refers the the iOS installation instructions for a bare iOS workflow.
Result
npx expo run:ios
⚠️ Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: Invalid `Podfile` file:
[!] Invalid `rnmapbox-maps.podspec` file: Setting $RNMapboxMapsImpl is now required - https://github.com/rnmapbox/maps/wiki/Deprecated-RNMapboxImpl-Unset#ios.
# from <project_dir>/node_modules/@rnmapbox/maps/rnmapbox-maps.podspec:88
# -------------------------------------------
# unless $RNMapboxMapsImpl
> raise "Setting $RNMapboxMapsImpl is now required - https://github.com/rnmapbox/maps/wiki/Deprecated-RNMapboxImpl-Unset#ios"
# end
# -------------------------------------------
.
# from <project_dir>/WandelApp/ios/Podfile:52
# -------------------------------------------
# use_expo_modules!
> config = use_native_modules!
#
# -------------------------------------------
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 16 (5 by maintainers)
So the issue is that #main documents the instructions with 10.1 which is only
rcso you’d need to useexpo install @rnmapbox/maps@nextinstead ofexpo install @rnmapbox/mapsThis was fixed in the install instructions at: https://rnmapbox.github.io/docs/install
And we’re now just referring to it. https://github.com/rnmapbox/maps#installation
Same problem. Why Isn’t the need to pass another parameter
RNMapboxMapsImpl: 'mapbox'even mentioned in the guide for the expo plugin? And even after passing it I am still getting an errorI am using expo SDK 49 and my deploymentTarget is 13.0