无法在iOS应用中安装带有Firebase的pod。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了无法在iOS应用中安装带有Firebase的pod。相关的知识,希望对你有一定的参考价值。

我无法成功地将 pods 安装到我的项目中。我总是得到这个错误。

enter image description here

这是我的Podfile(我添加了FirebaseFirestoreSwift,但即使我撤消了更改,它仍然不能工作)。

enter image description here

一个月前它还能正常工作。

答案

你需要使用以下方法安装最新版本的Xcode命令行工具 xcode-select --install. 如果你已经安装了一个版本,你可能会得到一个类似于

xcode-select: error: command line tools are already installed, use "Software Update" to install updates

在这种情况下,请尝试将旧的命令行工具从 /Library/Developer/CommandLineTools 并重新安装。

以上是关于无法在iOS应用中安装带有Firebase的pod。的主要内容,如果未能解决你的问题,请参考以下文章