我正在从git repo克隆一个项目,但是当我执行pod install
时,我看到的第一行是“设置CocoaPods Master repo”,之后我看不到更多内容,控制台停在那里。
我不知道发生了什么。有人知道这里发生了什么吗?可可豆为什么停在那里?
您可以尝试在详细模式下运行:
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
pod install
或pod settings
在您第一次运行它时获取带有历史记录的整个repo。您不需要那个提交历史记录。
pod setup
Ctrl +C
cd ~/.cocoapods/repos
git clone --depth 1 https://github.com/CocoaPods/Specs.git master
在良好的网络连接(4Mbps)上大约需要2分钟。master
目录大约519M大。
尝试此命令以跟踪其工作。
while true; do
du -sh ~/.cocoapods/
sleep 3
done