本文介绍了`pod repo update`到底是做什么的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注有关Firebase的互联网教程,因此,我必须在命令行中进行一些工作。我对命令行非常满意,但是对Cocoapods不熟悉。我运行了 pod repo update ,但是这样做之后,我意识到我是在Mac的整个Documents文件夹而不是包含项目的文件夹中运行它的。我花了20分钟以上的时间执行,最终完成时,它打印出了成千上万的内容,其中包括创建和删除。我有点担心-运行此命令是否会修改Firebase项目之外的文档中的任何内容?

I'm following an internet tutorial on Firebase and as part of it I had to do some work in the command line. I'm pretty comfortable with the command line, but I'm unfamiliar with Cocoapods. I ran pod repo update but after doing so I realized I ran it on my entire Documents folder of my Mac instead of the folder that contained my project. I took over 20 mins to execute and it printed out literally thousands of things when it finally completed, some of which included "create" and "deleted". I was kind of concerned- would running this command have modified anything in my Documents besides the Firebase project? And what does pod repo update even do for that matter?

推荐答案

为何 pod repo更新还能做什么呢?根据文档更新位于<$ c $的规范回购c>〜/ .cocoapods / repos 在您的主文件夹中。

As per the documentation pod repo update updates the spec repos located at ~/.cocoapods/repos in your home folder.

repo 基本上是所有可用pod和版本的列表。我刚刚在我们的CI版本中遇到一个错误,因为该回购未包含我刚刚添加的库的规范。通过运行 pod repo更新,它现在知道此较新版本并可以继续安装。

The repo is basically a list of all pods and versions available. I have just encountered an error in our CI builds because the repo did not include a spec for a library I have just added. By running pod repo update it now knows of this newer version and can continue to install it.

所以回答您的问题。在文档文件夹中运行 pod repo update 不会在该文件夹中执行任何操作。它将仅在您的〜/ .cocoapods / repos 文件夹中更新其pod规范引用。

So to answer your question.. Running pod repo update in your documents folder will not do anything in that folder. It will update its pod spec references in your ~/.cocoapods/repos folder only.

这篇关于`pod repo update`到底是做什么的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 09:11
查看更多