CocoaPods执行pod setup后显示错误信息
$pod setup
Setting up CocoaPods master repo
$ /usr/local/bin/git clone https://github.com/CocoaPods/Specs.git master
--progress
Cloning into 'master'...
remote: Counting objects: 2310271, done.
remote: Compressing objects: 100% (369/369), done.
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
从上边可以看出主要错误信息为
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
原因: 网络不稳定,可以尝试重新 pod setup
如果排除网络不稳定情况,但是一直不成功, 则执行
$ git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master
命令应该就可以了。
网友评论