Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 736
Visal Sambo Avatar asked Jun 09 '19 17:06

Visal Sambo


2 Answers

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

like image 89
Brady Avatar answered Nov 18 '22 22:11

Brady


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

like image 8
Paul Beusterien Avatar answered Nov 18 '22 22:11

Paul Beusterien