![](/img/trans.png)
[英]CocoaPods could not find compatible versions for pod "Firebase/CoreOnly"
[英]CocoaPods could not find compatible versions for pod "Firebase/Auth":
我的 flutter (3.3.7) 应用程序中有以下依赖项:
...
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
firebase_core: ^2.1.1
firebase_storage: ^11.0.4
firebase_auth: ^4.1.1
cloud_firestore: ^4.0.4
...
在 MacOS 上,我现在想为 iOS Simulator 构建它,但它总是无法构建。 当我手动输入 pod repo update 然后 pod install 时,似乎存在 Firebase SDK 9 和 SDK10 的依赖冲突。 但是,我该如何解决呢? 例如回到 firebase auth: 3.1.1 给出了一堆其他的冲突。 ...
pod install
Analyzing dependencies
cloud_firestore: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
firebase_storage: Using Firebase SDK version '10.0.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "Firebase/Auth":
In snapshot (Podfile.lock):
Firebase/Auth (= 9.6.0)
In Podfile:
firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) was resolved to 4.1.1, which depends on
Firebase/Auth (= 10.0.0)
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* changed the constraints of dependency `Firebase/Auth` inside your development pod `firebase_auth`.
You should run `pod update Firebase/Auth` to apply changes you've made.
有任何想法吗? 或者这只是一个 Firebase Flutter/SDK 问题,我必须等待解决方案? (顺便说一句:Android 构建工作正常)谢谢
请按照以下步骤
谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.