'Higher minimum deployment target' error when installing Firebase Crash Reports Pods for iOS
Asked Answered
V

17

83

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?

Vaticide answered 27/7, 2016 at 1:54 Comment(0)
L
24

enter image description here

use deployment as 8.0 or 8.1 or 9.0

Lynnell answered 27/7, 2016 at 2:12 Comment(0)
A
89

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'
....
....
....
Anaerobic answered 20/11, 2016 at 14:23 Comment(2)
fwiw, just tried this on a project with Xcode 13.1 and bumping up from '10.0' to '12.0' and it worked.Aimeeaimil
also change the AppFrameworkInfo.plist ` <key>MinimumOSVersion</key> <string>12.0</string>`Drove
S
58

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
Shortcake answered 22/4, 2019 at 18:45 Comment(3)
for me manual update of platfrom :ios, '12.0' in Podfile + this command in the same directory as the Podfile fixed it!Southerner
This does work for me! (without a need to change minimal sdk)Bacolod
This + deleting podfile.lock first as said in answer below works.Pam
A
53

Updating your podfile platform to platform :ios, '11.0' will fix the issue

Angelus answered 7/2, 2021 at 14:48 Comment(0)
K
29

Delete Podfile.lock

Then run:

pod install --repo-update
Kwa answered 1/8, 2022 at 0:53 Comment(1)
Not sure how I managed to forget this step, thanks man. Solved my problem.Preparation
L
24

enter image description here

use deployment as 8.0 or 8.1 or 9.0

Lynnell answered 27/7, 2016 at 2:12 Comment(0)
B
23

Make sure to update the platform value in ios/Podfile

platform :ios, '<minmum_version_you_want_to_support_for_pods>'

enter image description here

Bagman answered 12/3, 2021 at 5:44 Comment(0)
F
5

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.
Faunus answered 19/4, 2017 at 14:51 Comment(0)
S
5

Just replace platform :ios, '10.0' or the right latest version.

Scrotum answered 29/6, 2020 at 22:48 Comment(3)
how can we discover what that version is? Cocoapods should tell us.Exploratory
uh i guess we should just keep trying until we get it right, bcz they dont know how to write documentations!!Ajar
@Exploratory Look for *.podspec file in the package repository code.Telescopium
P
5

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.

Plot answered 27/10, 2021 at 22:46 Comment(2)
same case here for SentryBacolod
If you're using Apple Silicon chip (M1 or M2) use - arch -x86_64 pod update Firebase/FirestorePoor
H
4

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

Hysteresis answered 12/7, 2022 at 11:24 Comment(1)
Thanks for sharing. In Flutter, I needed to change in podfile inside iOS folder.Atony
B
3

Open ios folder and find Podfile, then change the minimum iOS version to 11.0 as below

platform :ios, '11.0'
Bullet answered 16/5, 2023 at 9:53 Comment(1)
platform :ios, '12.0' was what worked for my issue with a different package. Had to update this value in Xcode project -> InfoStratocumulus
V
2

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.

Valgus answered 11/12, 2023 at 17:59 Comment(0)
C
1

Currently, the minimum iOS version supported by Firebase is 10.0. It's documented here.

Croy answered 20/11, 2016 at 15:0 Comment(1)
October 2021: The doc say the minimum version is 10.0 or laterSundried
J
1

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.

Jollity answered 22/5, 2018 at 11:43 Comment(0)
A
1

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

Adaptive answered 9/2, 2024 at 21:59 Comment(0)
P
0

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

Pygmy answered 19/1, 2024 at 10:30 Comment(0)
B
0

If nothing works try this

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'
Bakke answered 17/7, 2024 at 10:9 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.