'Higher minimum deployment target' 为 iOS 安装 Firebase 崩溃报告 Pods 时出错

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

我正在尝试为 iOS 安装 Firebase 崩溃报告 Pod。核心 Firebase Pod 安装正常,但是在安装崩溃报告时,我通过终端收到以下错误:

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

我尝试了其他类似线程的解决方法(例如 ),但仍然出现相同的错误 - 是否有其他可能的解决方法? Firebase SDK 支持的最低 iOS 版本是多少?

将部署用作 8.0 或 8.1 或 9.0

确保更改 Podfile 中的最小部署目标,例如,如果最小部署目标是 iOS 9,则应将其更改为最小值

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

目前,Firebase 支持的最低 iOS 版本是 10.0。已记录 here

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.

另一种可能会出现此问题的情况是,如果您的应用有扩展,并且如果您在主目标和扩展的目标中指定了不同的版本,则会出现此错误。确保在主目标和扩展目标中指定的 pod 版本相同。

None 上面列出的答案为我修复了它。即使更改为最新的 iOS 目标版本也没有用。对我有用的是:

pod install --repo-update

只需更换平台:ios、“10.0”或正确的最新版本。

将您的播客文件平台更新为 platform :ios, '11.0' 将解决此问题

确保在 ios/Podfile

中更新平台值

平台:ios,''

在我的例子中 iOS 10 作为目标就可以了。我所要做的就是:

pod update Firebase/Firestore

这将大多数软件包更新为更高版本并解决了问题。