重装了电脑系统,cocoapods安装过程中总会遇到各种问题,最常碰到的是pod setup (Setting up CocoaPods master repo)失败, 因为这个耗时比较长
错误提示
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master
Cloning into ‘master’…
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
解决方法:
sudo rm -fr ~/.cocoapods/repos/master
git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
然后再pod setup
本文介绍了解决CocoaPods安装过程中遇到的问题,特别是podsetup失败的情况。提供了具体的命令来更新或重新克隆master仓库。
2385

被折叠的 条评论
为什么被折叠?



