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.
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
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
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'
.
change pod 'Firebase/Messaging' ,'~> 4.6.0' to pod 'Firebase/Messaging'
And run pod install
我只是想在我的颤振项目的 ios 文件夹中运行pod update
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
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.