[!] /usr/local/bin/git clone https://github.com/CocoaPods/Specs.git --progress -- master
Cloning into 'master'...
remote: Enumerating objects: 192, done.
remote: Counting objects: 100% (192/192), done.
remote: Compressing objects: 100% (143/143), 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
解决方法
pod repo remove master
2. git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master
3. cd ~/product/yourProductName (xcode项目)
4. pod init
5. pod install
[https://stackoverflow.com/a/40541430/3258003]
网友评论