请帮我解决这个问题 我将 firestore 添加到 flutter 项目中,它适用于 android 但是对于ios我不能在模拟器中运行应用程序
我生成了 podfile 并添加了
pod 'Firebase/Core'
pod 'Firebase/Firestore'
也将平台更改为
platform :ios, '10.0'
但是在终端“pod install --repo-update”中运行此命令时出现错误
Error like this:
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.
依赖于 pubspec.yaml
firebase_core: ^1.1.0
firebase_analytics: ^8.0.1
cloud_firestore: ^1.0.7
firebase: ^9.0.1
答案 0 :(得分:0)
从终端给出的这条消息来看,您可能需要将平台更改为更高的iOS版本↓
dependency were found, but they required a higher minimum deployment target.
您可能想将平台更改为 iOS 12 或 13 之类的版本,iOS 13 对我来说效果最好。
platform :ios, '13.0'