Reputation: 1938
I'm attempting to install the Firebase Crash Reporting Pod for iOS. The core Firebase Pod installs fine, however when installing Crash Reporting, I get the following error via the terminal:
Specs satisfying the `Firebase/Crash` dependency were found, but they required a higher minimum deployment target.`
I've tried workarounds from other similar threads (eg. Firebase pod install - pod 'Firebase/Database' - Required a higher minimum deployment target), but still get the same error - is there another possible workaround? What is the minimum iOS version supported by the Firebase SDK?
Upvotes: 91
Views: 175722
Reputation: 21
This is pretty much the fix for the issue.
platform :osx, '13'
Change whatever the version mentioned in the macos/Podfile
with the above version then simply run
pod install --repo-update
I faced this problem with google_sign_in
package for Flutter.
Upvotes: 1
Reputation: 2853
go inside the ios folder then .symlinks open your dependency folder which is causing the problem
for example I had this issue in payu_checkout_pro dependency so I opened
ios/.synminks/plugins/payu_checkoutpro_flutter/ios/payu_checkoutpro_flutter.podspec
then look for this line
s.platform = :ios, '13.0'
now make the change to podfile
# Uncomment this line to define a global platform for your project
platform :ios, '13.0' //<-- uncomment and change this value
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Upvotes: 1
Reputation: 758
None of this worked for me (Xcode 15), but adding the following to delete the deployment target override in the podfile did:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
end
end
Then pod install
Upvotes: 1
Reputation: 61
I tried most of the solutions mentioned above, but none seemed to work for me. What actually worked for me was simple: delete Podfile.lock and run pod install again
Upvotes: 0
Reputation: 62419
I was running my Flutter App on MacOS and got the same error. I've tried all the stuff as above but just one solution worked for me:
Just update following line in Podfile:
platform :osx, '13'
and it worked successfully.
Upvotes: 2
Reputation: 4930
Open ios
folder and find Podfile
, then change the minimum iOS version to 11.0
as below
platform :ios, '11.0'
Upvotes: 3
Reputation: 1327
check platform :ios, 'VERSION' in your
/node_modules/react-native/template/ios/Podfile
update same version in your pod file fix the issue for me
Upvotes: 4
Reputation: 798
In my case iOS 10 as a target was fine. All I had to do was:
pod update Firebase/Firestore
This updated most packages to greater versions and fixed the problem.
Upvotes: 5
Reputation: 29582
Currently, the minimum iOS version supported by Firebase is 10.0. It's documented here.
Upvotes: 1
Reputation: 765
Make sure to update the platform value in ios/Podfile
platform :ios, '<minmum_version_you_want_to_support_for_pods>'
Upvotes: 23
Reputation: 626
Updating your podfile platform to platform :ios, '11.0'
will fix the issue
Upvotes: 53
Reputation: 1228
None of the answers listed above fixed it for me. Changing to even the latest iOS target version did not work. What worked for me was this:
pod install --repo-update
Upvotes: 63
Reputation: 958
Another scenario where this problem can occur is, if you have extensions for your app and if you specify different versions in main target and extension's target you will get this error. Make sure you have the same version of pod specified in the main target as well as in the extension's target.
Upvotes: 1
Reputation: 783
Steps to solve this issue.
1.) Navigate to your project folder using your terminal or iterm. 2.) Open your project podfile by typing : open podfile 3.) In your podfile edit the deployment target below which is the 8.0. platform :ios, '8.0' You may replace it with higher deployment target like 9.0, 9.1, 10.0 or higher.
Upvotes: 5
Reputation: 3317
Make sure to change the minimum deployment target in Podfile
so for example if the minimum deployment target is meant to be iOS 9
, it should be changed to that minimum
platform :ios, '9.0'
....
....
....
Upvotes: 100