【问题标题】:Error after adding firebase_auth to flutter app将 firebase_auth 添加到颤振应用程序后出错
【发布时间】:2022-11-02 19:28:25
【问题描述】:

我添加了 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 pod install 但没有成功。 有人遇到过这个问题吗?

【问题讨论】:

    标签: flutter firebase


    【解决方案1】:

    尝试删除Podile.lock 并重建应用程序

    更新

    有时由于目标 ios 平台而发生问题。尝试执行以下步骤:

    • 扑干净
    • 将所有依赖项更新到pubspec.yml 文件中的最新版本并执行flutter pub get
    • 转到您的Podfile 并取消注释#platform :ios, '9.0' 然后将版本更改为10 platform :ios, '10.0'
    • 转到IOS文件夹并通过终端运行命令:pod repo updatepod updatepod install

    【讨论】:

    • 我有,没用
    • 尝试使用更新的方法
    • 同样的事情,同样的问题
    【解决方案2】:

    在 IssueTracker 中报告。

    https://issuetracker.google.com/issues/254418199#comment22

    Currently the next release is planned at the end of Q4.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-03-20
      • 2020-02-23
      • 1970-01-01
      • 1970-01-01
      • 2021-07-12
      • 2022-08-17
      • 2019-10-29
      相关资源
      最近更新 更多