Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CocoaPods could not find compatible versions for pod "FirebaseFirestore":

I have a problem that I cannot seem to resolve. I have tried all of the solutions listed here previously, but nothing is resolving the error. I am building an app using Flutterflow.io, which is a low-code platform. Everything has worked great for a local iOS build using Andriod Studio up to today (Andriod build is still working), but now the CocoasPods and Firebase are not connecting. Any help would be greatly appreciated!

[!] CocoaPods could not find compatible versions for pod "FirebaseFirestore":

In Podfile: FirebaseFirestore (from https://github.com/invertase/firestore-ios-sdk-frameworks.git, tag 8.6.0)

cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 2.5.0, which depends on
  Firebase/Firestore (= 8.5.0) was resolved to 8.5.0, which depends on
    FirebaseFirestore (~> 8.5.0)

I also receive this message from the run mode.

"You have either: * out-of-date source repos which you can update with pod repo update or with pod install --repo-update. * changed the constraints of dependency Firebase/Auth inside your development pod firebase_auth. You should run pod update Firebase/Auth to apply changes you've made."

I have tried updating the pods, the repo, run pod update Firebase/Auth, and delete the podfile.lock folder, but to no avail. Everything seems to point to the same issue with the Pods and Firestore not communicating. I apologize for my lack of expertise as I am new to any type of computer programming.

like image 369
Dennis Ashford Avatar asked Oct 21 '25 04:10

Dennis Ashford


1 Answers

Worked for me with this fix:

  1. Go to /ios folder inside your Project.

  2. Delete Podfile.lock (YourProject/ios/Podfile.lock) if you haven't.

  3. Open your Podfile, also in your ios/ folder.

  4. Locate this bit:

target 'Runner' do
  pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.6.0'
  1. Change the tag => '8.6.0' to tag => '8.5.0'
  2. Run pod install again. Make sure you are inside the ios/ folder. (cd ios)

Then try flutter run again outside the ios folder, and should run.

Hope this helps with the Firestore issue.

like image 84
Graciela Carrillo Avatar answered Oct 22 '25 18:10

Graciela Carrillo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!