ios - 如何解决 flutter 上的 pod install 错误?

标签 ios firebase flutter dart google-cloud-firestore

  cloud_firestore: ^0.16.0
  firebase_auth: ^0.20.0+1
  smooth_star_rating: ^1.0.4
  google_maps: ^4.0.0
  firebase_core: ^0.7.0
  rxdart: ^0.24.1

Pod install Analyzing dependencies cloud_firestore: Using Firebase SDK version '7.3.0' defined in 'firebase_core' firebase_auth: Using Firebase SDK version '7.3.0' defined in 'firebase_core' firebase_core: Using Firebase SDK version '7.3.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.

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


每当我尝试安装 pod 时,我都会在终端上收到此错误。

最佳答案

正如错误所说,我们与 firebase 包不兼容,所以:
我去了 Podfile 并升级到 10(平台:ios,'10.0')并且错误消失了;
作为附加说明:
我之前评论过那行,所以我的第一次尝试是取消评论并升级到 9,但它不起作用。

关于ios - 如何解决 flutter 上的 pod install 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65943260/

相关文章:

ios - 只能在 arc 或 gc 模式下合成 weak 属性

ios - 在没有仪器的情况下调试循环保留在 ARC 中

ios - 在具有多个 Android 应用程序和一个 iOS 应用程序的 Firebase 中注册新的 bundle ID 时出现错误

java - Android Firebase UI 无法访问 aad

ios - 我如何获得带有换行符的 UIBarButtonItem 标题?

iOS RxSwift 如何检查 Result == .success?

javascript - 如何使用Cordova插件和Firebase模板将Facebook身份验证详细信息发送到Firebase

Flutter ExpansionTile 箭头在左边而不是右边?

android - built_value 与 flutter_test 存在依赖冲突

android - youtube_player_flutter : ^7. 0.0+6 未在 iOS 上启用全屏