Cloud FireStore minimum deployment target - firebase

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...)

Related

'Chrono' file not found issue - iOS

I have few Firebase libraries integrated into my ongoing iOS project and recently I got a 'chrono file not found' error as you can see below:
I am stuck with this for past 2 days. I went through several forums & SO as usual (like this,and this).
But none of the helped and really can't find an accepted solution for this anywhere yet. And another weird thing is Xcode auto code completion and console logging not working after this. My pod file looks like this:
# Uncomment the next line to define a global platform for your project
platform: ios, '13.0'
target 'LearningApp' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for LearningApp
pod 'Firebase/Firestore'
pod 'Firebase/Analytics'
pod 'FirebaseFirestoreSwift'
pod 'Firebase/Storage'
pod 'Firebase/Messaging'
pod 'SDWebImagePDFCoder'
pod 'Firebase/Auth'
pod 'MessageKit'
pod 'GoogleSignIn'
pod 'SwiftKeychainWrapper'
target 'LearningAppTests' do
inherit! :search_paths
# Pods for testing
end
target 'LearningAppUITests' do
# Pods for testing
end
end
Right now I am using Xcode 12.0.1 and Swift 5.
I am really stuck with this, hope someone can help.
I got a solution, this worked for me. Hope this may help someone.
Do pod deintegrate from terminal.
Add Firebase frameworks using Swift Package Manager (Check here for How to add Firebase Package Manager).
Install other pods if needed.
And go!

Firebase pods not installing correctly

I am trying to install some Firebase pods into my project but I am getting the error message below in my Terminal window;
[!] Unable to read the license file 'LICENSE' for the spec 'Firebase (6.21.0)'
Here is my podfile;
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'UberTutorial' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for UberTutorial
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'GeoFire', '>= 1.1'
end
I did...
Delete derived data.
Full clean with command + shift + K.
Build project again, still same error.
Delete derived data again.
Full clean again.
Comment out pod lines.
Do pod install.
Uncomment pod lines.
Do pod install.
Build project again - SUCCESS!!!

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'

When I install pod1 it prevents me from installing pod2, when I install pod2 it prevents me from installing pod1

when I install pod 'Firebase' it prevents me from installing pod 'TwilioConversationsClient', when I install pod 'TwilioConversationsClient' it prevents me from installing pod 'Firebase'. I receive "[!] Unable to find a specification for Firebase" message in terminal.
podfile
-----------------------------------------------------------------------
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
source 'https://github.com/twilio/cocoapod-specs'
target 'podname' do
pod 'TwilioConversationsClient'
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for podname
pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Storage'
end
-------------------------------------------------------------------
They install separately, but not together. please help
Twilio Developer Evangelist here. I believe the problem is that you have removed the main CocoaPods spec URL when you added the Twilio spec URL. Add the following line above where your current source line is located (you need both):
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/twilio/cocoapod-specs'
This should help resolve the Firebase pod.

Resources