【问题标题】:Flutter iOS : Unable to read the license file `LICENSE` for the spec `Firebase (7.3.0)`; `GoogleUtilities (7.2.2)`Flutter iOS:无法读取规范“Firebase(7.3.0)”的许可证文件“LICENSE”; `GoogleUtilities (7.2.2)`
【发布时间】:2021-06-09 18:05:58
【问题描述】:

我将 Flutter 与 xcode 一起使用。
如果我执行 $ flutter run ios
会出现错误 我从我的 xcode 中得到错误

Podfile 内容

Xcode 的错误输出:↳ /Users/username/Desktop/Projects/myprojectfolder/ios/Pods/FirebaseCoreDiagnostics/Firebase/CoreDiagnostics/FIRCDLibrary/FIRCoreDiagnostics.m:22:9: 'GoogleUtilities/GULAppEnvironmentUtil.h' file not found

我的终端出错:↳

[!] Unable to read the license file `LICENSE` for the spec `Firebase (7.3.0)`

[!] Unable to read the license file `LICENSE` for the spec `GoogleUtilities (7.2.2)`

[!] Unable to read the license file `LICENSE` for the spec `Firebase (7.3.0)`

[!] Unable to read the license file `LICENSE` for the spec `GoogleUtilities (7.2.2)`

[!] [Xcodeproj] Generated duplicate UUIDs: 

请帮我找到解决问题的方法

【问题讨论】:

    标签: ios xcode firebase flutter podfile


    【解决方案1】:

    CocoaPods 找不到 pod 的兼容版本# 当您升级 FlutterFire 包并尝试为 iOS 或 macOS 构建时,可能会发生此问题,这通常归结为以下原因之一:

    您的 iOS 或 macOS 目录中的 Podfile.lock 版本已过期并锁定为旧版本的 Firebase iOS SDK,而新升级的 FlutterFire 软件包可能使用这些 SDK 的较新版本。 解决方案:

    删除 Podfile.lock

    文件并再次尝试构建。该文件将在下一次 pod 安装后重新生成。 您的 pod 规格存储库已过期,这意味着本地的 CocoaPods 不知道最近发布的任何潜在的 Firebase iOS SDK 新版本。 解决方案:

    运行 pod repo 更新

    在您的终端中并再次尝试构建。

    【讨论】:

      猜你喜欢
      • 2021-04-04
      • 2020-04-20
      • 2014-07-28
      • 2020-07-16
      • 2021-05-14
      • 2020-05-21
      • 2012-03-07
      • 2015-01-24
      • 2021-09-13
      相关资源
      最近更新 更多