Blue
Blue

Reputation: 1448

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.

Upvotes: 13

Views: 5906

Answers (8)

smukamuka
smukamuka

Reputation: 1537

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

Upvotes: -1

ufukcatalca
ufukcatalca

Reputation: 7

Installing FirebaseInAppMessaging (0.12.0)
Installing FirebaseInAppMessagingDisplay (0.12.0)

Upvotes: 0

GuiOS
GuiOS

Reputation: 83

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

Upvotes: 0

Zaid Pathan
Zaid Pathan

Reputation: 16820

That's it,

pod repo update
pod update

Upvotes: 0

MNassar
MNassar

Reputation: 377

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.

pod result

Upvotes: 0

jamesthakid
jamesthakid

Reputation: 1265

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

Upvotes: 7

Blue
Blue

Reputation: 1448

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.

Upvotes: 20

Gil Gilbert
Gil Gilbert

Reputation: 7870

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.

Upvotes: 2

Related Questions