Skip to content
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

Invalid rnmapbox-maps.podspec file: Setting $RNMapboxMapsImpl is now required - https://github.com/rnmapbox/maps/wiki/Deprecated-RNMapboxImpl-Unset#ios. #3647

Closed
jesikaprabhuzcon opened this issue Oct 7, 2024 · 2 comments

Comments

@jesikaprabhuzcon
Copy link

jesikaprabhuzcon commented Oct 7, 2024

Environment

  • Dev OS: 14.5
  • @rnmapbox/maps version: "10.0.15"
  • React Native version: "0.70.2"

Trying on React Native Cli

Steps to reproduce

Recently, the library was upgraded in the project, and after that facing this error on pod install.

Performed yarn on the branch and then pod install

I have also tried pod repo update

Gone through the Installation steps for the iOS and all the lines/ instructions mentioned in the installation are performed.
Screenshot 2024-10-07 at 10 43 03 AM

Any solution to this issue?

@hexadecy
Copy link
Contributor

hexadecy commented Oct 9, 2024

Add to the ios/Podfile:

$RNMapboxMapsImpl = 'mapbox'

@jesikaprabhuzcon
Copy link
Author

jesikaprabhuzcon commented Oct 15, 2024

In ios/Podfile added these lines

$RNMapboxMapsVersion = '~> 10.11.1'
$RNMapboxMapsImpl = 'mapbox'

commented out below lines

RNMapboxMapsVersion = '11.4.1'
RNMapboxMapsImpl = "mapbox"
$RNMapboxMapsImpl = "mapbox"

Add Mapbox SDK dependency
pod 'MapboxMaps', $RNMapboxMapsVersion

in

pre_install do |installer|
//Add below lines
//# $RNMBGL.pre_install(installer)
ENV['MAPBOX_DOWNLOADS_TOKEN'] = 'sk.eyJ1I...'
$RNMapboxMaps.pre_install(installer)

in

post_install do |installer|

//Add below line
$RNMapboxMaps.post_install(installer)

After all these changes issue was resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants