我添加了firebase_auth并得到了这个错误
CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core":
In Podfile:
firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) was resolved to 4.0.2, which depends on
Firebase/Auth (= 10.0.0) was resolved to 10.0.0, which depends on
FirebaseAuth (~> 10.0.0) was resolved to 10.0.0, which depends on
GTMSessionFetcher/Core (~> 2.1)
mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 0.0.1, which depends on
GoogleMLKit/BarcodeScanning (~> 2.6.0) was resolved to 2.6.0, which depends on
MLKitBarcodeScanning (~> 1.7.0) was resolved to 1.7.0, which depends on
MLKitVision (~> 3.0) was resolved to 3.0.0, which depends on
GTMSessionFetcher/Core (~> 1.1)
如果我删除firebase_auth,一切都会好起来的。我尝试过使用arch -x86_64吊舱安装,但没有成功。有人面临这个问题吗?
发布于 2022-10-25 06:38:44
尝试删除Podile.lock
并重新构建应用程序
更新
有时问题会发生在目标ios平台上。尝试执行以下步骤:
pubspec.yml
文件中的最新版本并执行flutter pub get
Podfile
并取消注释#platform :ios, '9.0'
,然后将版本更改为10 platform :ios, '10.0'
pod repo update
、pod update
或pod install
发布于 2022-11-10 06:44:23
两个包(身份验证和扫描仪)都在iOS内部使用GTMSessionFetcher pod。
由于两个插件都使用不同版本的GTMSessionFetcher,这会导致冲突,因此我们无法编译iOS应用程序。
在firebase中有一个开放的问题 -ios-sdk,在这里我们可以获得所有的更新,到目前为止,我也无法找到任何问题,但是如果我发现了任何重要的东西,就会在这里更新。谢谢。
更新
我发现了另外两个有关联的问题。
发布于 2022-11-13 13:22:03
对我来说,将所有的防火墙依赖项更新到最新版本,google登录版本删除了这个错误。
然后,运行吊舱安装。
https://stackoverflow.com/questions/74189927
复制相似问题