pod setup报错RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 50

localhost:PopNews dmy$ pod setup

Setting up CocoaPods master repo

  $ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --progress

  Cloning into 'master'...

  remote: Enumerating objects: 197, done.       

  remote: Counting objects: 100% (197/197), done.       

  remote: Compressing objects: 100% (155/155), done.       

  error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 50

  fatal: the remote end hung up unexpectedly

  fatal: early EOF

  fatal: index-pack failed

[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --progress

Cloning into 'master'...

remote: Enumerating objects: 197, done.       

remote: Counting objects: 100% (197/197), done.       

remote: Compressing objects: 100% (155/155), done.       

error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 50

fatal: the remote end hung up unexpectedly

fatal: early EOF

fatal: index-pack failed


pod setup报错RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 50_第1张图片


解决办法:

1. 先安装CocoaPods执行正常:sudo gem install -n /usr/local/bin cocoapods

2. 再调用:pod setup


pod setup报错RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 50_第2张图片

你可能感兴趣的:(pod setup报错RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 50)