Last login: Sun Sep 11 13:24:10 on ttys002
Deepanshus-MacBook-Air:~ deepanshusrivastava$ pod setup --verbose
Setting up CocoaPods master repo
Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master
Cloning into 'master'...
error: RPC failed; curl 56 SSLRead() return error -9806
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
Cloning into 'master'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
每次我尝试安装 pod 时都会发生这种情况。 严重卡住。
最佳答案
我在安装 Cocoapods $pod 时遇到同样的错误
这发生在 SecureTransport 后端使用的 curl 上。您可能会找到此错误的一些解释 here
我尝试了许多其他方法来解决这个问题,有一次我使用 Tunnel Bear VPN 来解决这个问题。我跟着这个link回答。但是现在,我发现这是best way .
$ brew remove git
$ brew remove curl
$ brew install openssl
$ brew install --with-openssl curl
$ brew install --with-brewed-curl --with-brewed-openssl git
关于git - 无法设置 pod(错误 : RPC failed; curl 56 SSLRead() return error -9806),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39434447/