Specs satisfying the `Firebase/Functions` dependency were found, but they required a higher minimum deployment target
Solution 1
Remove the '~> 4.6.0'
.
FirebaseFunctions
was introduced after Firebase 4.6.0 and is thus incompatible with the version restriction pod 'Firebase/Messaging' ,'~> 4.6.0'
.
Solution 2
If this solution didn't work for you (It didn't work for me haha), I found another option - here is the initial error I got:
[!] CocoaPods could not find compatible versions for pod "Firebase/Firestore":
In snapshot (Podfile.lock):
Firebase/Firestore (= 6.34.0, ~> 6.0)
In Podfile:
Firebase/Firestore
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 1.0.6, which depends on
Firebase/Firestore (= 7.3.0)
Specs satisfying the `Firebase/Firestore, Firebase/Firestore (= 6.34.0, ~> 6.0), Firebase/Firestore (= 7.3.0)` dependency were found, but they required a higher minimum deployment target.
My Solution was to switch my ios/Podile's first line to platform :ios, '10.0'
and run:
pod update
pod install
Pod Update updates Cocoa Pods, and for me it also installed the packages
Date: 4/21/21
Solution 3
You need to increase your deployment target. Go to Project Navigator (Cmd + 1), select the your app's target and increase the iOS Deployment Target
to the minimum required by Firebase (iOS >= 8). Finally, rerun pod install:
pod install
Solution 4
change pod 'Firebase/Messaging' ,'~> 4.6.0' to pod 'Firebase/Messaging'
And run pod install
![Visal Sambo](https://lh5.googleusercontent.com/--8jq2TJ-KCE/AAAAAAAAAAI/AAAAAAAAABM/uBEBRE1Clww/photo.jpg?sz=256)
Visal Sambo
I am a student which accomplishes Software Engineering. I love to develop web application and mobile application which applicable for iOS and Android.
Updated on June 14, 2022Comments
-
Visal Sambo about 2 years
I was trying to install
pod 'Firebase/Functions'
but failed with the following error:`[!] CocoaPods could not find compatible versions for pod "Firebase/Functions": In Podfile: Firebase/Functions
Specs satisfying the
Firebase/Functions
dependency were found, but they required a higher minimum deployment target.`Here is my pod file
# Uncomment the next line to define a global platform for your project # platform :ios, '11.0' target 'MyApp' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! # Pods for MyApp pod 'Firebase/Core' pod 'Firebase/Firestore' pod 'Firebase/Database' pod 'Firebase/Auth' pod 'Firebase/Messaging' ,'~> 4.6.0' pod 'Firebase/Storage' pod 'Firebase/Functions' pod 'GoogleMaps' pod 'FirebaseUI/Auth' pod 'FirebaseUI/Phone' pod 'ImageSlideshow', '~> 1.6' pod 'DZNEmptyDataSet' pod 'SDWebImage' pod 'SDWebImage/WebP' target 'MyAppTests' do inherit! :search_paths # Pods for testing end target 'MyAppUITests' do inherit! :search_paths # Pods for testing end
end
I have searched for some resources and let me do 3 steps:
pod repo update pod update pod install
I have done with those 3 steps with still not work.
-
Visal Sambo about 5 yearsMy deployment target is version 11.0 why it is still not working?
-
FLUXparticle over 3 yearsI increased it to 11 and it worked for me with Flutter 2.
-
Ridwan over 3 years@FLUXparticle I ran into this after a fresh install of the firebase_core and bumping it to the deployment target to 11.0 also worked for me 👍🏽
-
FLUXparticle over 3 years@Ridwan I looked into the source of firebase and 10 would actually be enough.
-
Boris over 2 yearspod update worked for me in my Flutter project. Thanks!!!
-
Aleksandar over 2 years@VisalSambo
10.0
worked for me withfirebase_core: ^1.13.1
andfirebase_messaging: ^11.2.8
. No need to restrict it to higher version, since you loose potential compatible devices / iOS versions.