rnmapbox / maps

A Mapbox react native module for creating custom maps
MIT License
2.28k stars 847 forks source link

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

Closed jesikaprabhuzcon closed 1 month ago

jesikaprabhuzcon commented 1 month ago

Environment

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 commented 1 month ago

Add to the ios/Podfile:

$RNMapboxMapsImpl = 'mapbox'
jesikaprabhuzcon commented 1 month ago

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