Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FirebaseFirestoreSwift won't install (CocoaPods)

I'm trying to load FirebaseFirestoreSwift and I'm getting the error message:

    [!] CocoaPods could not find compatible versions for pod "FirebaseFirestore":
  In snapshot (Podfile.lock):
    FirebaseFirestore (= 7.0.0, ~> 7.0.0)

  In Podfile:
    Firebase/Firestore was resolved to 7.0.0, which depends on
      FirebaseFirestore (~> 7.0.0)

    FirebaseFirestore

    FirebaseFirestoreSwift was resolved to 0.4.0, which depends on
      FirebaseFirestore (>= 1.6.1, ~> 1.6)

My Podfile has:

pod 'Firebase/Firestore'
pod 'Firebase/Analytics'
pod 'Firebase/Storage'
pod 'FirebaseFirestoreSwift'

All the other pods have loaded fine. Am I missing something?

like image 250
seth.eeee Avatar asked Nov 03 '20 20:11

seth.eeee


3 Answers

It's in the Beta phase and to fetch it you need to specify its version and as per firebase/cocoapod document it's in Beta 8.3.0 so you can try the below pod.

You want to add pod 'FirebaseFirestoreSwift', '8.3.0-beta' similar to the following to your Podfile:

target 'MyApp' do
  pod 'FirebaseFirestoreSwift', '8.3.0-beta'
end

Then run a pod install inside your terminal, or from CocoaPods.app.

Alternatively to give it a test run, run the command:

pod try FirebaseFirestoreSwift

Hope this will helps to get it the right pod version.

like image 163
CodeChanger Avatar answered Nov 13 '22 00:11

CodeChanger


Change to pod 'FirebaseFirestoreSwift', '> 7.0-beta'

Staring with the 7.0.0 release, Firebase is now indicating beta status with a version tag instead of a 0 major version. More details in the release notes.

like image 37
Paul Beusterien Avatar answered Nov 12 '22 23:11

Paul Beusterien


Always try to get the name of Pod from cocoapods website

pod 'FirebaseFirestoreSwift', '8.1.0-beta'
like image 3
Simran Singh Avatar answered Nov 12 '22 22:11

Simran Singh