CocoaPods 找不到 pod“Firebase/Firestore”的兼容版本

问题描述 投票:0回答:1

我在 iOS 的 flutter 项目中运行 pod install 时遇到问题。

我没有更改任何依赖项,但 Firebase/Firestore 版本似乎有问题。 特别是我收到的错误是:

[!] CocoaPods could not find compatible versions for pod "Firebase/Firestore":
  In snapshot (Podfile.lock):
    Firebase/Firestore (= 10.15.0)

  In Podfile:
    cloud_firestore (from .symlinks/plugins/cloud_firestore/ios) was resolved to 4.13.3, which depends on
      Firebase/Firestore (= 10.18.0)

Specs satisfying the Firebase/Firestore (= 10.15.0), Firebase/Firestore (= 10.18.0) dependency were found, but they required a higher minimum deployment target.

[!] Automatically assigning platform iOS with version 12.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

有人遇到同样的问题吗?

我已经尝试过我所知道的每个命令:

pod install
pod update
pod repo update
flutter clean
flutter pub get

我升级了 flutter 和所有软件包,并重新创建了 podfile 和 podfile.lock 文件。

ios flutter xcode firebase cocoapods
1个回答
0
投票

确保 Podfile 中的最低 ios 平台至少为 11:

platform :ios, '11.0'

© www.soinside.com 2019 - 2024. All rights reserved.