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.
Worked for me with this fix:
Go to /ios
folder inside your Project.
Delete Podfile.lock
(YourProject/ios/Podfile.lock
) if you haven't.
Open your Podfile
, also in your ios/
folder.
Locate this bit:
target 'Runner' do
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.6.0'
tag => '8.6.0'
to tag => '8.5.0'
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.
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