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

kfgdxczn  于 2022-11-25  发布在  其他
关注(0)|答案(1)|浏览(215)

我在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和SDK 10的依赖关系冲突。然而,我该如何解决它?例如,返回到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构建工作正常)谢谢

guicsvcw

guicsvcw1#

请按照以下步骤操作
1.光盘 ios

  1. pod更新
  • 谢谢-谢谢

相关问题