安装Firebase Crash Reports Pods for iOS时出现“Higher minimum deployment target”错误

73

我正在尝试为iOS安装Firebase Crash Reporting Pod。核心的Firebase Pod可以正常安装,但是在安装Crash Reporting时,我通过终端收到以下错误信息:

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

我尝试了其他类似线程的解决方法(例如Firebase pod install - pod 'Firebase/Database' - Required a higher minimum deployment target),但仍然遇到了同样的错误 - 是否有其他可能的解决方法? Firebase SDK支持的最低iOS版本是多少?

13个回答

75

请务必更改Podfile中的最低部署目标,例如,如果最低部署目标是iOS 9,则应将其更改为该最低版本

platform :ios, '9.0'
....
....
....

3
就我所知,我刚在一个使用Xcode 13.1的项目上尝试了这个方法,将版本从“'10.0'”升级到“'12.0'”,它起作用了。 - paneer_tikka
同时更改AppFrameworkInfo.plist中的<key>MinimumOSVersion</key><string>12.0</string> - Kristi Jorgji

47

将您的podfile平台更新为platform :ios, '11.0'将解决此问题。


47

以上列出的答案都不能解决我的问题。即使更改到最新的iOS目标版本也无效。对我有用的是这个:

->

以上列出的答案都没能解决我的问题。即使更改到最新的iOS目标版本也没用。对我有效的是以下方法:

pod install --repo-update

2
对我来说,在 Podfile 中手动更新 platform: ios, '12.0' 并在与 Podfile 相同的目录中运行此命令就可以解决问题! - Aidin
这对我有效!(无需更改最小SDK) - ch271828n

24

在此输入图片描述

使用8.0、8.1或9.0作为部署版本。


谢谢!8.0可行。Firebase的最低部署目标在哪里有记录? - user2181948

21

请确保在ios/Podfile文件中更新平台值

platform :ios, '<你想要支持Pods的最低版本>'

在此输入图片描述


19

我已经删除了 Podfile.lock 文件并运行了 pod install --repo-update 命令


2023年4月运行得非常顺畅。 - Elmar
以上的答案都没用,但是这个方法对我很有帮助! - Finni
这就是它!谢谢你。 - giorgio79

5

只需要替换 platform :ios, '10.0' 部分为正确的版本号或最新版本即可。


2
我们如何发现当前的版本是什么?Cocoapods应该会告诉我们。 - funkybro
1
嗯,我想我们应该继续尝试直到做对为止,因为他们不知道如何编写文档! - Adnan
@funkybro 在软件包存储库代码中查找 *.podspec 文件。 - Ulysses Alves

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.

4

在你的/node_modules/react-native/template/ios/Podfile中检查平台:ios,'VERSION'

更新您的Pod文件中的相同版本可解决此问题。


感谢分享。 在Flutter中,我需要更改iOS文件夹内的podfile。 - Anurag Sharma

4

在我的情况下,将 iOS 10 作为目标是可以的。我所要做的只有:

pod update Firebase/Firestore

此更新将大多数软件包升级到更高版本并解决了问题。


1
这里对于 Sentry 也是一样的情况。 - ch271828n
1
如果您正在使用苹果芯片(M1或M2),请使用- arch -x86_64 pod update Firebase/Firestore - zackygaurav

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接