I am getting the following error while running pod install for my react-native project.
I tried running pod install --repo-update and pod repo update, but it didn't work for me.
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly": In Podfile: RNFBApp (from
../node_modules/@react-native-firebase/app) was resolved to 8.4.3, which depends on Firebase/CoreOnly (~> 6.30.0)RNFBFirestore (from `../node_modules/@react-native-firebase/firestore`) was resolved to7.8.2, which depends on Firebase/Firestore (~> 6.30.0) was resolved to 6.30.0, which depends on Firebase/CoreOnly (= 6.30.0)
RNFBRemoteConfig (from `../node_modules/@react-native-firebase/remote-config`) was resolvedto 6.7.1, which depends on Firebase/Core (~> 6.13.0) was resolved to 6.13.0, which depends on Firebase/CoreOnly (= 6.13.0)
CocoaPods could not find compatible versions for pod "Google-Maps-iOS-Utils": In Podfile: Google-Maps-iOS-Utils
react-native-google-maps (from `../node_modules/react-native-maps`) was resolved to 0.27.1, whichdepends on Google-Maps-iOS-Utils (= 2.1.0)
CocoaPods could not find compatible versions for pod "GoogleMaps":
In Podfile: react-native-google-maps (from../node_modules/react-native-maps) was resolved to 0.27.1, which depends on Google-Maps-iOS-Utils (= 2.1.0) was resolved to 2.1.0, which depends on GoogleMapsreact-native-google-maps (from `../node_modules/react-native-maps`) was resolved to 0.27.1, whichdepends on GoogleMaps (= 3.5.0)
Can anyone give a possible solution to solve this?
I solved it like this:
node_modules/react-native-maps/react-native-google-maps.podspec and I have the following versions:require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
Pod::Spec.new do |s|
...
s.dependency 'GoogleMaps', '5.1.0'
s.dependency 'Google-Maps-iOS-Utils', '3.10.3'
...
Podfile like this: rn_maps_path = '../node_modules/react-native-maps'
pod 'react-native-google-maps', :path => rn_maps_path
pod 'GoogleMaps', '5.1.0' # <<<<---- I added the '5.1.0' version here
pod 'Google-Maps-iOS-Utils', '3.10.3' # <<<<---- I added the '3.10.3' version here
pod install and I got this error: [!] The platform of the target inguru(iOS 10.0) may not be compatible withGoogleMaps (5.1.0) which has a minimum requirement of iOS 11.0.11.0 on top of my Podfile:platform :ios, '10.0'
pod install again and everything worked.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With