我从一个git repo克隆一个项目,但当我执行pod安装时,我看到的第一行是“设置CocoaPods主repo”,之后我看不到任何更多的东西,控制台停在那里。
我不知道发生了什么。有人知道这里发生了什么吗?CocoaPods为何止步于此?
我从一个git repo克隆一个项目,但当我执行pod安装时,我看到的第一行是“设置CocoaPods主repo”,之后我看不到任何更多的东西,控制台停在那里。
我不知道发生了什么。有人知道这里发生了什么吗?CocoaPods为何止步于此?
当前回答
从cocoapods 1.7.2开始,你可以使用cdn而不是github。它燃烧得很快,挂不起来。从cocopods 1.8.0开始,cdn是默认的。
To use the CDN source in your Podfile: If you don't have private specs: source 'https://cdn.cocoapods.org/' If you have private specs: source 'https://github.com/artsy/Specs.git' - source 'https://github.com/CocoaPods/Specs.git' + source 'https://cdn.cocoapods.org/' Doing this will break your Podfile.lock, so you are likely to need to run pod update to see the changes (be careful, this may update your Pods also). If you have a CI setup, it is recommended to cache the new repo dir as it is very small and would save even more time. With 1.7.2 it should be located at ~/.cocoapods/repos/cocoapods- (yes, with a -), but we're looking to improve the naming in an upcoming release.
更多信息:
CocoaPods 1.7.2 -主Repo CDN完成! CocoaPods 1.8测试版来了!
其他回答
刚刚安装了主回购,很兴奋地看到我们有一个下载进度,见截图;)
CocoaPods 1.2.0版(1月28日)修复了这个问题,感谢所有贡献者和Danielle Tomlinson。
我也有同样的问题。我必须使用下面的命令来解决它。
git clone `https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master`
尝试这个命令来跟踪它的工作。
while true; do
du -sh ~/.cocoapods/
sleep 3
done
pod setup --verbose
我现在正在运行上面提到的命令,但正如@Joe Blow所提到的,它显示绝对没有关于进度的信息。
但是如果你打开Mac上的活动监视器(Windows上的任务管理器?),在“网络”选项卡下,你会看到一个名为“git-remote-https”的进程,它显示“接收字节”的大小正在增加。在下载了大约300MB后,它停止了,然后我可以在终端窗口中看到进一步的进展。
从cocoapods 1.7.2开始,你可以使用cdn而不是github。它燃烧得很快,挂不起来。从cocopods 1.8.0开始,cdn是默认的。
To use the CDN source in your Podfile: If you don't have private specs: source 'https://cdn.cocoapods.org/' If you have private specs: source 'https://github.com/artsy/Specs.git' - source 'https://github.com/CocoaPods/Specs.git' + source 'https://cdn.cocoapods.org/' Doing this will break your Podfile.lock, so you are likely to need to run pod update to see the changes (be careful, this may update your Pods also). If you have a CI setup, it is recommended to cache the new repo dir as it is very small and would save even more time. With 1.7.2 it should be located at ~/.cocoapods/repos/cocoapods- (yes, with a -), but we're looking to improve the naming in an upcoming release.
更多信息:
CocoaPods 1.7.2 -主Repo CDN完成! CocoaPods 1.8测试版来了!