Search code examples
iosfirebasedeploymentgoogle-cloud-functionscocoapods

Specs satisfying the `Firebase/Functions` dependency were found, but they required a higher minimum deployment target


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.


Solution

  • 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'.