cocoapods安装pod setup error解决方法

来源:互联网 发布:http aq.qq.com js 编辑:程序博客网 时间:2024/06/05 17:12

重装了电脑系统,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

0 0
原创粉丝点击