maps: Expo installation instructions fail with error: "Setting $RNMapboxMapsImpl is now required"

Environment

  • Dev OS: macOS 14.1.2

Steps to reproduce

  1. Follow the exact instructions at: https://github.com/rnmapbox/maps/blob/main/plugin/install.md#plugin-configuration
  2. 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)

Most upvoted comments

So the issue is that #main documents the instructions with 10.1 which is only rc so you’d need to use expo install @rnmapbox/maps@next instead of expo install @rnmapbox/maps

This 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 error

import MapboxMaps
 ^ compiling for iOS 11.0, but module 'MapboxMaps' has a minimum deployment target of iOS 12.0: 
image

I am using expo SDK 49 and my deploymentTarget is 13.0