简体   繁体   English

无法使用 Firebase 在 iOS 应用程序中安装 pod

[英]Can't install pod in iOS app with Firebase

I am not able to successfully install pods to my project.我无法成功地将 pod 安装到我的项目中。 I am always getting this error:我总是收到这个错误:

在此处输入图像描述

This is my Podfile (I added FirebaseFirestoreSwift but even when I undo the changes, its still not working):这是我的 Podfile(我添加了 FirebaseFirestoreSwift,但即使我撤消了更改,它仍然无法正常工作):

在此处输入图像描述

It was working fine a month ago.一个月前它运行良好。

You need to install the latest version of Xcode command line tools using xcode-select --install .您需要使用xcode-select --install安装最新版本的 Xcode 命令行工具。 If you already have an installed version, you might get an error similar to如果您已经安装了版本,您可能会收到类似于以下内容的错误

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

In that case, try removing the old command line tools from /Library/Developer/CommandLineTools and reinstall it again.在这种情况下,请尝试从/Library/Developer/CommandLineTools中删除旧的命令行工具并重新安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM