找到满足 firebase_analytics 来自 .symlinks/plugins/firebase_analytics/ios 依赖项的规范,但需要更高的最低部署目标

Specs satisfying firebase_analytics from .symlinks/plugins/firebase_analytics/ios dependency were found, but required higher minimum deployment target

我刚刚尝试使用 VNC 查看器和 SSH 通过 CodeMagic 构建我的 flutter 应用程序,但没有成功。

我已经尝试 运行 “pod install” 结果:

Analyzing dependencies
firebase_analytics: Using Firebase SDK version '8.3.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '8.3.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '8.3.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "firebase_analytics":
  In Podfile:
    firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`)

Specs satisfying the `firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`)` dependency were found, but they required a higher minimum deployment target.

[!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

我还尝试删除 Podfile.lock 和 pod 安装。结果相似。我也尝试过 运行 pod repo update 然后 pod update 与上面类似的结果。

我也曾尝试手动将我的 Podfile iOS 版本更改为 10,但没有成功。

我尝试了这些命令的各种组合:

flutter clean
flutter build ios

pod install
pod update
pod repo update
pod install --repo-update

如有任何回复,我们将不胜感激

我最初以为我已经用 12 试过了,但事实证明我一定没有。 12 我能够解决这个问题,但我对任何人的建议是避免通过 CodeMagic 进行此设置,这并不好玩!