I'm trying to add the Geofirestore pod I found on GitHub So I can add geo locations longitude and latitude to posts in a social media app. My pod file looks like this
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/Storage', '~> 4.0'
pod 'Geofirestore'
I ran the pod repo update and pod install in my terminal but its not working and I'm getting this as an error.
[!] CocoaPods could not find compatible versions for pod "FirebaseCore":
In snapshot (Podfile.lock):
FirebaseCore (= 4.0.20, ~> 4.0)
In Podfile:
Firebase/Core was resolved to 4.13.0, which depends on
FirebaseAnalytics (= 4.2.0) was resolved to 4.2.0, which depends on
FirebaseCore (~> 4.0)
Firebase/Core was resolved to 4.13.0, which depends on
FirebaseCore (= 4.0.20)
Geofirestore was resolved to 0.1.0, which depends on
FirebaseCore (~> 5.0.3)
[!] Automatically assigning platform `ios` with version `11.4` on target `My App` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform
CocoaPods could not find compatible versions for pod "Firebase/Core": In Podfile: Firebase/Core Specs satisfying the `Firebase/Core` dependency were found, but they required a higher minimum deployment target.
If anyone else is struggling with this error, I found a solution. Check the version of cocoapods installed on your machine. This can be done with a terminal command .
Error output from CocoaPods: ↳ [33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding. Consider adding the following to ~/.profile: export LANG=en_US.UTF-8 [0m [!] Automatically assigning platform `ios` with version `8.0` on target `Runner` because no platform was specified.
[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding. from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.0/lib/cocoapods/command.rb:160:in `verify_podfile_exists!' [33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
You have 'Geofirestore'
in your Podfile: as seen by the error message, it requires FirebaseCore (~> 5.0.3)
.
You have 'Firebase/Storage', '~> 4.0'
in your Podfile, which sticks you to FirebaseCore (~> 4.0)
.
To use both, you'll need to upgrade from Firebase 4 to Firebase 5. I.e. you need to have:
pod 'Firebase/Storage', '~> 5.0'
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