安装适用于iOS的Firebase崩溃报告窗口时出现"更高的最低部署目标"错误

use*_*948 5 ios firebase firebase-crash-reporting

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

Specs satisfying the `Firebase/Crash` dependency were found, but they required a higher minimum deployment target.`
Run Code Online (Sandbox Code Playgroud)

我尝试过其他类似线程的解决方法(例如Firebase pod安装 - pod'Firebase/Database' - 需要更高的最低部署目标),但仍然会出现同样的错误 - 还有其他可能的解决方法吗?Firebase SDK支持的最低iOS版本是多少?

小智 19

我已删除 Podfile.lock 并运行 pod install --repo-update


jpi*_*ira 13

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

pod install --repo-update
Run Code Online (Sandbox Code Playgroud)

  • 对我来说,在 Podfile 中手动更新 `platfrom :ios, '12.0'` + 这个命令与 Podfile 位于同一目录中修复了它! (2认同)

小智 11

更新您的 podfile 平台以platform :ios, '11.0' 解决问题


Moh*_*leh 8

确保更改最小部署目标,Podfile例如,如果要实现最小部署目标iOS 9,则应将其更改为最小值

platform :ios, '9.0'
....
....
....
Run Code Online (Sandbox Code Playgroud)

  • fwiw,刚刚在一个使用 Xcode 13.1 的项目上尝试过这个,并从“10.0”升级到“12.0”,它起作用了。 (3认同)

小智 6

在此处输入图片说明

将部署用作8.0或8.1或9.0


Sha*_*iya 6

确保更新 ios/Podfile 中的平台值

平台:ios,'<minmum_version_you_want_to_support_for_pods>'

在此处输入图片说明


han*_*som 5

解决此问题的步骤。

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.
Run Code Online (Sandbox Code Playgroud)


小智 5

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

  • 我们怎样才能知道那个版本是什么?Cocoapods 应该告诉我们。 (2认同)

Va5*_*li5 5

就我而言,iOS 10 作为目标就很好了。我所要做的就是:

pod update Firebase/Firestore
Run Code Online (Sandbox Code Playgroud)

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