Cocoapods setup或install 过程中如果出现
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
在终端执行
git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master
随后再重新执行setup或install
pod setup
或
pod install
参考
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54