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

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.

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'

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'
Change the tag => '8.6.0' to tag => '8.5.0'
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.

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

Related

CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core"

I am making a React-Native mobile application and want to incorporate Firebase and Firebase Authentication. However, I am facing this error when I run 'pod install' or 'pod update':
I did some research and found out that this issue has not yet been resolved by Google (https://issuetracker.google.com/issues/254418199), but I came across a workaround (https://github.com/firebase/firebase-ios-sdk/issues/10359) which said to add a version specifier to the Podfile: pod 'FirebaseAuth', '>= 9.6.0'. However, even after I added the line into the Podfile in my iOS folder, the same error still persists. May I know if I'm doing something wrongly?
I stumbled upon the same issue. It seems it's a compatibility issue with the latest Firesbase SDK version (10).
For now something that worked for me is to place this at the top of the Podfile:
$FirebaseSDKVersion = '9.6.0' (Docs)
This overrides the default firebase sdk and assures it uses the downgraded version.
Now just execute pod install and give a try. If it doesn't work try removing the Podfile.lock and the Pods folder and try again.
BTW I didn't need this line in the Podfile as one of the resources you shared mentioned:
pod 'FirebaseAuth', '>= 9.6.0'
What helped me is to add this into my pod file.
pod 'GTMSessionFetcher', :modular_headers => true
and then run
arch -x86_64 pod update GTMSessionFetcher/Core
Unfortunately, while Alex's answer did help with my original error, I was unable to solve the 2nd error in my comment above. What I did instead was to restart the creation of the app. This time, however, rather than connecting the app to Dialogflow first, I linked the app to Firebase Auth first, and then adding Dialogflow. This worked for me and I managed to build the app with no issues. Hope this helps someone.
try to delete Podfile.lock and run cd ios && pod install --repo-update

Getting "CocoaPods could not find compatible versions for pod "Firebase/Database" " Error on flutter

i have followed an exact guide on how to setup a geofire on to my project. i have success on my android project.. but i cant get it to run for the ios.. and it has the following error as i try to run it.
[!] CocoaPods could not find compatible versions for pod "Firebase/Database":
In Podfile:
firebase_database (from `.symlinks/plugins/firebase_database/ios`) was resolved to 6.1.2, which depends on
Firebase/Database (= 7.11.0)
flutter_geofire (from `.symlinks/plugins/flutter_geofire/ios`) was resolved to 0.0.1, which depends on
GeoFire (~> 4.0) was resolved to 4.1.0, which depends on
Firebase/Database (~> 6.0)
I've tried to run pod update and this is the result
Macbook-MBP:ios Macbook$ pod update
Update all pods
Updating local specs repositories
Analyzing dependencies
firebase_auth: Using Firebase SDK version '7.11.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '7.11.0' defined in 'firebase_core'
firebase_database: Using Firebase SDK version '7.11.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "Firebase/Database":
In Podfile:
firebase_database (from `.symlinks/plugins/firebase_database/ios`) was resolved to
6.1.2, which depends on Firebase/Database (= 7.11.0)
flutter_geofire (from `.symlinks/plugins/flutter_geofire/ios`) was resolved to 0.0.1,
which depends on
GeoFire (~> 4.0) was resolved to 4.1.0, which depends on
Firebase/Database (~> 6.0)
and this is what i've imported to my pubspec.yaml file..
firebase_database: ^6.1.2
flutter_geofire: ^2.0.0
i dont understand what im doing wrong, any help would be appreciated.. thanks
for anyone that is facing this issue,
run flutter clean in the terminal
add this line at the bottom of the podfile
pod 'GeoFire', :git => 'https://github.com/mrdishant/geofire-objc', :tag => '4.3.0'
dont forget to add use_frameworks! on top of the podfile
delete Pod folder from iOS.
change platform :ios, '10.0' to platform :ios, '11.0' on the podfile
run pod repo update then pod update
then run flutter run in the terminal
thats how i got it working for me
Updating the platform configured in the Podfile to platform :ios, '10.0' didn't work for me. I've had to update the iOS Deployment Target to 10.0 - located on Runner > Info > Deployment Target
After that, deleting the Podfile.lock with rm -rf Podfile.lock then running pod update and pod install solved the issue for me.
Same issue here. I've been trying to fix for weeks. Can't find anything online either. If you figure it out please post! Sorry, I do not have enough 'reputation points' to comment yet :(
Faced the same challenge but all of the above solutions didn't work for me.
What worked for me:
Following the link shown in the error (I've highlighted):
enter image description here
In you IDE, go to Project File -> ios -> .symlinks -> plugins -> firebase_database -> ios
enter image description here
Open the .podspec file of the dependency.
enter image description here
Look for: s.ios.deployment_target = '12.0'
I think the "s.ios.deployment_target" should be less than or equal to the "platform :ios, 'XX.0'" in the Podfile.
enter image description here
After changing s.ios.deployment_target value to less than in the platform :ios, in the podfile, try removing Podfile.lock, pod install --repo-update etc.
Do the same for other podfiles throwing the error, in your case: flutter_geofire, firebase_database etc.
You can check this solution too. [https://stackoverflow.com/questions/65881232/specs-satisfying-the-firebase-admob-but-they-required-a-higher-minimum-deploy]

Firebase/MLVisionTextModel is not getting installed via pods iOS

[!] CocoaPods could not find compatible versions for pod "Firebase/MLVisionTextModel":
In Podfile:
Firebase/MLVisionTextModel
Specs satisfying the Firebase/MLVisionTextModel dependency were found, but they required a higher minimum deployment target.
Okay!
I have faced the issue yesterday and couldn't solve the issue after trying pod repo update or pod install or pod install after pod deintegrate etc.
I simply have a option , I deleted the Podfile.lock, then in Podfile I simply made pod versions fixed (so that other members of my team aren't affected) i.e. I used SDWebImage like
pod 'SDWebImage', '3.8', :inhibit_warnings => true
then run pod install
only that time it worked for me and saved the whole day!

Firebase/MLVision is not getting installed via Pods iOS

I'm trying to add Firebase/MLVision to my iOS app, but running pod install gives me this:
[!] CocoaPods could not find compatible versions for pod "Firebase/MLVision":
In Podfile:
Firebase/MLVision
Specs satisfying the `Firebase/MLVision` dependency were found, but they required a higher minimum deployment target.
What do I do? Any kind of help is highly appreciated!
After trying different things for some time, I found my answer here: https://stackoverflow.com/a/46613676/1585677
Basically removing the Firebase/MLVision from pod file, then running
pod repo update
pod update
Then adding Firebase/MLVision to Podfile and running pod install
Looks like your Pod file is not valid, or isn't targeting your project. You can see a working codelab here if you have doubts.
Likely, the ios version specified in the Podfile is too low. It needs to be at least 8.0 for Firebase 5.x, including the MLVision subspec:
platform :ios, '8.0'

Cloud FireStore minimum deployment target

I'm getting the following error when trying to enable an app with Cloud FireStore:
[!] Unable to satisfy the following requirements:
- `Firebase/Firestore` required by `Podfile`
Specs satisfying the `Firebase/Firestore` dependency were found, but they required a higher minimum deployment target.
I changed the podfile requirement to 10.2 and my xcode deployment to 10.2 and I am still getting this error. Any suggestions?
Edit:
Solution for me: I did
pod repo update
pod install
pod update
in that order and it worked.
I was adding to an existing project so I did
pod repo update
pod install
pod update
it that order and it worked.
I'm not sure why this ordered worked, put my guess it would have something to clearing/reset something somewhere in the firebase add ons.
I did this in order :
Remove pod 'Firebase/Firestore' from your Podfile, then :
pod repo update
pod update
Then I add pod 'Firebase/Firestore' to my Podfile and finally perform pod install
Firestore should work with iOS 7 and later. More details here.
The simplest Podfile that uses it looks like this:
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'Firebase/Core'
pod 'Firebase/Firestore'
end
The Xcode deployment target for your app should not have any effect on pod install.
The getting started video shows this all in action.
I have had the same problem. I tried pod repo update, pod install, pod update and even updated cocoapods.
Turned out I still had the FirebaseDatabase pod in the podfile.
Removing that solved the problem.
That's it,
pod repo update
pod update
I Had same problem (Specs satisfying the Firebase/Functions dependency were found, but they required a higher minimum deployment target.) when I was trying to add firebase/Functions to my pod file.
After several tries I've solved by removing all pods and then running pod install for each pod line I wanted, one by one, not installing all at same time.
At the end I've found that the pod 'Firebase/Core' was the problem, and I installed it for last and now everything is installed fine.
This is my pod now.
def shared_pods
use_frameworks!
pod 'Firebase/Functions'
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'Firebase/Storage'
pod 'Firebase/Database'
pod 'FirebaseUI/Storage'
pod 'SDWebImage'
pod 'Fabric'
pod 'Crashlytics'
end
Installing FirebaseInAppMessaging (0.12.0)
Installing FirebaseInAppMessagingDisplay (0.12.0)
I had the same problem with an another library.
Actually the last iOS version is 12. Also setting this version on the app, the error was still appearing.
The solution for me was to delete the podfile.lock file (I don't know why...)

Resources