homeeondemand / react-native-mapbox-navigation

A navigation UI ready to drop into your React Native application
MIT License
160 stars 122 forks source link

Could not find compatible version for pod "@react-native-mapbox-gl-mapbox-static" #18

Closed MaganAnkur closed 3 years ago

MaganAnkur commented 3 years ago

After following all the steps before doing pod install

I am getting below:

[!] CocoaPods could not find compatible versions for pod "@react-native-mapbox-gl-mapbox-static": In Podfile: react-native-mapbox-gl (from ../node_modules/@react-native-mapbox-gl/maps) was resolved to 8.1.0, which depends on @react-native-mapbox-gl-mapbox-static (~> 5.9.0)

react-native-mapbox-navigation (from `../node_modules/@homee/react-native-mapbox-navigation`) was resolved to 1.0.2, which depends on
  @react-native-mapbox-gl-mapbox-static (= 6.3.0)
rossmartin commented 3 years ago

This can be solved by adding this to the top of your Podfile -

$ReactNativeMapboxGLIOSVersion='6.3.0'

Note that you might need to delete your Podfile.lock file first.

This will allow you to use @react-native-mapbox-gl/maps with this library also.

MaganAnkur commented 3 years ago

@rossmartin thanks for response, it resolved the issue

MaganAnkur commented 3 years ago

@rossmartin It would be highly appreciated if you can help me with below

After building the app its immediately crashing and seems like below is the error

assert(false, "This application’s Info.plist file must include “audio” in UIBackgroundModes. This background mode is used for spoken instructions while the application is in the background."

MaganAnkur commented 3 years ago

I was able to fix above by inputting UIBackgroundModes as key and value as audio

rossmartin commented 3 years ago

Glad you were able to get it figured out. I went ahead and documented UIBackgroundModes in the readme.