Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CocoaPods could not find compatible versions for pod "FirebaseCore": In snapshot (Podfile.lock)

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
like image 422
Robert Harrison Avatar asked Aug 27 '18 05:08

Robert Harrison


People also ask

Is Firebase/core compatible with CocoaPods?

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.

How do I fix the CocoaPods error?

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 .

What does error 33m mean in CocoaPods?

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.

Does CocoaPods require UTF-8?

[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.


1 Answers

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'
like image 160
Cœur Avatar answered Nov 03 '22 00:11

Cœur