'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.
Solution 1:[1]
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 yourios/
folder.Locate this bit:
target 'Runner' do
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.6.0'
- Change the
tag => '8.6.0'
totag => '8.5.0'
- Run
pod install
again. Make sure you are inside theios/
folder. (cd ios
)
Then try flutter run
again outside the ios folder, and should run.
Hope this helps with the Firestore issue.
Solution 2:[2]
2022
in <project folder>/ios/Podfile Change tag to 8.15.0
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.15.0'
Solution 3:[3]
Apply same code inside pod file in ios folder of flutter
target 'Runner' do
use_frameworks!
use_modular_headers!
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.9.1'
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | C.K. |
Solution 3 | parmeet singh |