我试图用pod安装命令更新现有的pod,但它需要很长时间才能运行。
verbose模式显示它被卡在下一行(永远)
更新规范回购主机 $ /usr/bin/git pull -no-rebase -no-commit
在它被卡住之后就没有网络活动了。
我试图用pod安装命令更新现有的pod,但它需要很长时间才能运行。
verbose模式显示它被卡在下一行(永远)
更新规范回购主机 $ /usr/bin/git pull -no-rebase -no-commit
在它被卡住之后就没有网络活动了。
当前回答
截至2016年8月15日,回购是一个2.39GB的巨大文件。我打开活动监视器,看看终端在做什么。它正在下载一个巨大的文件。
其他回答
正如这里指出的,git-remote-http进程在后台运行。我从活动监视器到这个过程,退出这个过程恢复了pod进程,在pod安装后卡住了“更新本地规格存储库”
我也有同样的问题,然后我意识到我仍然在“非常糟糕的网络”上运行网络调节器。把它关掉就解决了问题。
希望这能帮助到别人。
按照下面的步骤来做:
下载https://github.com/CocoaPods/Specs/archive/master.zip
在终端运行以下命令:
Pod设置—详细
在终端中打开新选项卡并运行
mv ~ - cocoapods repos / -大师。git ~ - tempSpecsGitFolder
打开master.zip(解压缩)
mv Specs-master ~/.cocoapods/repos/master
mv ~/寺庙观景文件夹~/.cocoapods/repos/master/ git
CD[项目文件夹]
Pod安装-不回购更新
找到了另一种下载cocoapods的方法,就是下载这里提供的快照之一。它有点旧,但是.bz2压缩文件下载起来要快得多。一旦我下载了它,我将它复制到~/。cocoapods/repos/然后我使用bzip2 -dk *.bz2解压缩它。
解压缩需要一段时间,完成后,我将新解压缩文件的扩展名更改为.tar,并执行tar xvf *.tar来解压缩。这将显示正在创建的文件列表,也需要一段时间。
Finally when I ran pod repo list while inside the project folder, it showed the master folder had been added as a repo. Because I still kept getting an error that it was unable to find the specification for the pod I was looking for, I went to the master folder and did git fetch and then git merge. The git fetch took the longest, about an hour at 50 KB/s. I used fetch and merge instead of pull, as I was having issues with it, i.e. fatal: the remote end hung up unexpectedly. It is now up to date and I was able to get the pod I wanted.
2019年的更新答案-可可豆荚团队转向使用他们自己的CDN来解决这个问题,这是由于GitHub速率限制,如此处所述:https://blog.cocoapods.org/CocoaPods-1.7.2/
博士TL; 你需要将Podfile中的源代码行更改为:
source 'https://cdn.cocoapods.org/'