Flutter:CocoaPods 找不到 pod“firebase_analytics”的兼容版本:

时间:2021-03-06 14:52:01

标签: firebase flutter

正如标题自我解释 CocoaPods 在运行应用程序时出错,

完整日志

[!] 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.

有没有人知道它为什么会出现,因为它以前运行良好。

1 个答案:

答案 0 :(得分:1)

在您的 pubspc.yml 中尝试添加依赖项:

  firebase_core: ^1.0.0

然后打开 xcode , 运行 ios 文件夹 这将解决您的问题,