Reputation: 289
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 to
7.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 resolved
to 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, which
depends 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, which
depends on GoogleMaps (= 3.5.0)
Can anyone give a possible solution to solve this?
Upvotes: 3
Views: 13024
Reputation: 1
For my case I was using
pod 'Google-Maps-iOS-Utils', :git => 'https://github.com/Simon-TechForm/google-maps-ios-utils.git', :branch => 'feat/support-apple-silicon'
in my Podfile,
I just replace this line with pod 'Google-Maps-iOS-Utils', '~> 4.2.2'
and it works
Upvotes: 0
Reputation: 55
After some tries i delete podfile.lock and then pod install and it work
Upvotes: -1
Reputation: 9751
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 with
GoogleMaps (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.Upvotes: 4
Reputation: 3195
Took me some time. But fixed it. Be sure the version of iOS is at least 11
. You can change it at the top of your Podfile
:
platform :ios, '11.0'
Upvotes: 2
Reputation: 109
If you're sure you installed everything correctly and pod repo update doesn't work still, remove your Podfile.lock then do 'pod install' again.
Upvotes: 1