【问题标题】:Missing compatible version from cocopods in flutter /firebase projectFlutter / firebase 项目中缺少兼容版本的 cocoapods
【发布时间】:2021-09-10 16:48:56
【问题描述】:

我的 Flutter/firebase 项目中安装的 pod 有一个大问题。

每次“pod install”后都会收到此消息:

"Analyzing dependencies
cloud_firestore: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
cloud_functions: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
firebase_analytics: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '8.0.0' defined in 'firebase_core'


[!] CocoaPods could not find compatible versions for pod "cloud_firestore":
  In Podfile:
    cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)

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

我在 Mac M1 上,但堆栈溢出的大多数技巧也无济于事。

已经安装了“sudo arch -x86_64 gem install ffi”和“arch -x86_64 pod install”

以下是依赖项:

flutter:
    sdk: flutter
  firebase_core: ^1.3.0
  firebase_analytics: ^8.1.2
  firebase_auth: ^1.4.1
  cloud_firestore: ^2.2.0+1
  cloud_functions: ^1.1.2

删除一个后,上面的给定消息会出现一个新的 pod。

我真的不知道下班后该做什么......

谢谢!

【问题讨论】:

    标签: firebase flutter cocoapods


    【解决方案1】:

    你可以试试这个方法,

    然后先清理 Flutter,从 ios 文件夹中删除 .symlinks、Pods、Podfile.lock 和 Runner.xcworkspace。

    然后运行 ​​pub get。

    希望它对你有用。

    【讨论】:

    • 如果我的 ios 文件夹中没有 .symlinks,这是一个问题吗?
    • 不,它不起作用,消息再次出现;但现在我没有 runner.xcworkspace
    • [!] CocoaPods 找不到 pod "cloud_firestore" 的兼容版本:在 Podfile: cloud_firestore (from .symlinks/plugins/cloud_firestore/ios) Specs 满足 cloud_firestore (from .symlinks/plugins/cloud_firestore/ios)找到了依赖项,但它们需要更高的最小部署目标。它一次又一次地出现同样的问题......
    猜你喜欢
    • 2019-02-23
    • 1970-01-01
    • 2021-11-13
    • 1970-01-01
    • 2021-05-07
    • 2021-04-01
    • 2019-09-27
    • 2022-11-02
    • 2021-11-19
    相关资源
    最近更新 更多