Reputation: 1490
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.
Upvotes: 57
Views: 57139
Reputation: 1107
Firstly lets understand the error.
So the developer approach should be try increasing that from Podfile from 1 & check doing "Pod Update", hit & try increasing till we get compatible version.
In ios/Podfile
platform :ios, '13.0'
Upvotes: 1
Reputation: 2704
I used GoogleMLKit in my project and it used to have below:
platform :ios, '15.5' # or newer version
$iOSVersion = '12.0' # or newer version
See here: GoogleMLKit Translation
Upvotes: 0
Reputation: 115
The error message is clear:
Specs satisfying the Firebase/Functions dependency were found, but they required a higher minimum deployment target.`
So I solved it by increasing the minimum deployment target on the podfile just like the error message stated.
To do that, open your podfile, uncomment this line: # platform :ios, '11.0' and increase it to a higher version, in my case 12, then try installing your functions again.
Thank you, and I hope this helps others who might encounter such in future.
Upvotes: 1
Reputation: 316
Delete Podfile.lock
file and
then pod repo update
then try to install pod
Upvotes: 5
Reputation: 8737
run
pod install
and then according to your package name
pod update PACKAGE_NAME
Example:
pod update Firebase/Functions
Upvotes: 1
Reputation: 21
As @Brady mentioned you need to update your podfile #platform line.
Mine also has this post install function at the bottom that needs to be updated as well, and seems to override even the target deployment set in Xcode.
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
Upvotes: 2
Reputation: 3312
As mentioned in the error you need to require a higher minimum deployment target.
Go to your Podfile and uncomment
#platform :ios, '9.0'
Then change the version to 10
platform :ios, '10.0'
Run the build again. Answer was taken from here
Upvotes: 4
Reputation: 11329
I simply hat to run pod update
in the ios folder of my flutter project
Upvotes: 26
Reputation: 1039
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
Upvotes: 78
Reputation: 1426
change pod 'Firebase/Messaging' ,'~> 4.6.0' to pod 'Firebase/Messaging'
And run pod install
Upvotes: 3
Reputation: 29572
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'
.
Upvotes: 9
Reputation: 2089
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
Upvotes: 6