微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Flutter iOS:无法读取规范“Firebase (7.3.0)”的许可文件“LICENSE”; `GoogleUtilities (7.2.2)`

如何解决Flutter iOS:无法读取规范“Firebase (7.3.0)”的许可文件“LICENSE”; `GoogleUtilities (7.2.2)`

我在 xcode 中使用 Flutter。
如果我执行 $ 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: 

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

解决方法

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

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

删除 Podfile.lock

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

运行 pod repo 更新

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。