我从一个git repo克隆一个项目,但当我执行pod安装时,我看到的第一行是“设置CocoaPods主repo”,之后我看不到任何更多的东西,控制台停在那里。
我不知道发生了什么。有人知道这里发生了什么吗?CocoaPods为何止步于此?
我从一个git repo克隆一个项目,但当我执行pod安装时,我看到的第一行是“设置CocoaPods主repo”,之后我看不到任何更多的东西,控制台停在那里。
我不知道发生了什么。有人知道这里发生了什么吗?CocoaPods为何止步于此?
当前回答
上面的解决方案都不适合我,我不得不卸载coacoapods,然后安装一个特定的版本,然后一切才适合我
sudo gem uninstall cocoapods
然后
sudo gem install cocoapods -v 1.7.5
现在,即使是冗长也显示了进步
$ pod setup --verbose
Setting up CocoaPods master repo
Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git --progress -- master
Cloning into 'master'...
remote: Enumerating objects: 295, done.
remote: Counting objects: 100% (295/295), done.
remote: Compressing objects: 100% (283/283), done.
Receiving objects: 20% (744493/3722462), 132.93 MiB | 567.00 KiB/s
其他回答
你可以试着在verbose模式下运行:
pod install --verbose
这将告诉你可可豆荚的作用:
Setting up CocoaPods master repo
Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
$ /usr/bin/git clone 'https://github.com/CocoaPods/Specs.git' master
Cloning into 'master'...
(如此处所示)
对我来说,上面的步骤花了很长时间,因为回购(2016年12月)现在是1.1 GB
我也遇到过同样的问题,但是很有效。我在3小时前执行了Pod安装命令,之后它更新了我想要的。 你只需要继续跟踪“活动监视器”,你可以在磁盘选项卡中看到他们的“git远程https”或“git”。它将下载大约330 Mb,然后显示1gb,几分钟后,它将开始安装。无需执行额外命令。
注意:在下载过程中,你的MAC需要连续处于活动模式。如果你的系统进入睡眠模式,那么CPU会停止进程,你会得到一个像手动添加的错误。
上面的解决方案都不适合我,我不得不卸载coacoapods,然后安装一个特定的版本,然后一切才适合我
sudo gem uninstall cocoapods
然后
sudo gem install cocoapods -v 1.7.5
现在,即使是冗长也显示了进步
$ pod setup --verbose
Setting up CocoaPods master repo
Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git --progress -- master
Cloning into 'master'...
remote: Enumerating objects: 295, done.
remote: Counting objects: 100% (295/295), done.
remote: Compressing objects: 100% (283/283), done.
Receiving objects: 20% (744493/3722462), 132.93 MiB | 567.00 KiB/s
这种情况只发生一次。
主回购有+-1GB(2016年11月)。 要跟踪进度,您可以使用活动监视器应用程序,并寻找git-remote-https。 下次它(pod设置或pod repo更新)只会快速更新~/.cocoapods/repos中的所有spec-repos。
我也有同样的问题。我必须使用下面的命令来解决它。
git clone `https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master`