Cocoapods下降了吗? [英] Is Cocoapods down?

查看:107
本文介绍了Cocoapods下降了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在更新项目中的pod。但是,cocoapods坚持分析依赖阶段。所以我创建了一个示例应用程序来测试cocoapods。这是我非常简单的podfile:

I am updating pods in my project. But cocoapods stucked at "Analyzing dependencies" stage. So I created a sample app to just test cocoapods. Here is my very simple podfile:

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '8.0'

pod 'Masonry'

但结果是一样的。它停留在分析依赖关系阶段。

But result is same. Its stuck at "Analyzing dependencies" stage.

推荐答案

你可以调试正在发生的事情:

You can debug what's going on with:

pod install --verbose

机会是CocoaPods正在更新您的规格仓库的本地副本。如果这是您第一次在当前机器上安装pod,则可以使用

Chances are CocoaPods is updating your local copy of the specs repo. If this is your first time installing pods on your current machine you can use

pod setup

可选择使用 - verbose 来观看此克隆发生。这可能需要几分钟。或者,如果您不担心拉动最新的规格仓库更改,您可以运行:

Optionally with --verbose to watch this clone happen. This could take a few minutes. Alternatively if you aren't worried about pulling the most recent specs repo changes you can run:

pod install --no-repo-update

关于CocoaPods如何工作的快速说明。 'specs'是包含CocoaPods如何配置每个库的定义的文件。这些规范存储在 GitHub 上,并在本地克隆到〜/ .cocoapods / repos /主。然后,当您运行 pod install 等命令时,会定期更新此本地副本,以确保您拥有最新版本的规范。由于这是影响安装的唯一网络连接的CocoaPods,因此更好的选择是'GitHub down',你可以看到这里。有可能用 - verbose 标志运行你的命令,这将标志着实际需要一段时间的事情。

A quick note about how CocoaPods works. The 'specs' are the files containing the definitions for how CocoaPods configures each library. These specs are stored on GitHub and cloned locally into ~/.cocoapods/repos/master. Then this local copy is updated periodically as you run commands such as pod install to make sure you have the newest versions of your specs. Since this is the only network connected piece of CocoaPods that affects installs the better quesetion would be 'is GitHub down' which you can see here. Chances are running your command with the --verbose flag will shine light on what is actually taking a while.

这篇关于Cocoapods下降了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆