我从一个git repo克隆一个项目,但当我执行pod安装时,我看到的第一行是“设置CocoaPods主repo”,之后我看不到任何更多的东西,控制台停在那里。
我不知道发生了什么。有人知道这里发生了什么吗?CocoaPods为何止步于此?
我从一个git repo克隆一个项目,但当我执行pod安装时,我看到的第一行是“设置CocoaPods主repo”,之后我看不到任何更多的东西,控制台停在那里。
我不知道发生了什么。有人知道这里发生了什么吗?CocoaPods为何止步于此?
当前回答
也许这些信息会有帮助:
官方答案:http://blog.cocoapods.org/Master-Spec-Repo-Rate-Limiting-Post-Mortem/
作为本次讨论的结果https://github.com/CocoaPods/CocoaPods/issues/4989
简要: CocoaPods存储库从GitHub获取了大量数据,这就是问题所在。自1.0.0.beta.6版本以来已有更改。
本文档提供的提示:
If for whatever reason you cannot upgrade to version 1.0.0 just yet, you can perform the following steps to convert your clone of the Master spec-repo from a shallow to a full clone:
$ cd ~/.cocoapods/repos/master
$ git fetch --unshallow
我的第一次安装方法:
1. pod setup
2. Ctrl+C
After that I could find ~/.cocoapods/repos/ empty directory
3. Download https://github.com/CocoaPods/Specs/archive/master.zip
4. unpack it to ~/.cocoapods/repos/
5. Move to project folder
6. pod install --no-repo-update
而今天则需要将近15分钟
其他回答
我目前使用的是另一种解决方案。通过更改Podfile中的存储库URL为:
source 'https://cdn.cocoapods.org/'
变化:
- source 'https://github.com/CocoaPods/Specs.git'
+ source 'https://cdn.cocoapods.org/'
可可荚-减少等待时间到10%(在Mac OS上)
1-在你的项目文件夹中输入pod设置(首先你必须在项目文件夹中)从Mac OS的终端。
2- CTRL+z停止后,它创建主目录(文件夹)[你可以看到它在你的可可豆文件夹位置:~/.cocoapods/repos]
下载。zip https://github.com/CocoaPods/Specs 主分支(它的301 MB),提取它。大约需要5-10分钟
4.将内容复制到~/。Cocoapods /repos(现在你只需要复制主文件夹中的内容,所以要确保主文件夹已经用pod setup命令创建了)
5-一旦你复制它(或者我应该说移动,拖放复制将永远,因为它非常大),然后你可以做pod安装-no-repo-update 6-你的pod在pod文件现在将开始安装 这是一个截图
这种情况只发生一次。
主回购有+-1GB(2016年11月)。 要跟踪进度,您可以使用活动监视器应用程序,并寻找git-remote-https。 下次它(pod设置或pod repo更新)只会快速更新~/.cocoapods/repos中的所有spec-repos。
吊舱设置工作,应该只需要10分钟的坚实的连接。然后运行:pod install——verbose,你应该会看到运行依赖管理器时通常会看到的所有注释。
希望这能有所帮助
也许这些信息会有帮助:
官方答案:http://blog.cocoapods.org/Master-Spec-Repo-Rate-Limiting-Post-Mortem/
作为本次讨论的结果https://github.com/CocoaPods/CocoaPods/issues/4989
简要: CocoaPods存储库从GitHub获取了大量数据,这就是问题所在。自1.0.0.beta.6版本以来已有更改。
本文档提供的提示:
If for whatever reason you cannot upgrade to version 1.0.0 just yet, you can perform the following steps to convert your clone of the Master spec-repo from a shallow to a full clone:
$ cd ~/.cocoapods/repos/master
$ git fetch --unshallow
我的第一次安装方法:
1. pod setup
2. Ctrl+C
After that I could find ~/.cocoapods/repos/ empty directory
3. Download https://github.com/CocoaPods/Specs/archive/master.zip
4. unpack it to ~/.cocoapods/repos/
5. Move to project folder
6. pod install --no-repo-update
而今天则需要将近15分钟