【问题标题】:Unable to setup pods (error: RPC failed; curl 56 SSLRead() return error -9806)无法设置 pod(错误:RPC 失败;curl 56 SSLRead() 返回错误 -9806)
【发布时间】:2017-01-18 22:54:48
【问题描述】:
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 时都会发生这种情况。 卡住了。

【问题讨论】:

    标签: git macos cocoapods


    【解决方案1】:

    您的 Xcode 版本的路径似乎已损坏。 您可以通过以下方式修复它:

    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

    如果你安装了多个版本的Xcode,你需要将/Applications/Xcode.app/Contents/Developer替换成你Xcode.app的实际位置,比如/Applications/Xcode 7.3.1.app/Contents/Developer

    【讨论】:

      【解决方案2】:

      Cocoapods $pod install 遇到同样的错误

      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
      

      【讨论】:

      • 虽然理论上可以回答这个问题,it would be preferable 在这里包含答案的基本部分,并提供参考链接
      猜你喜欢
      • 1970-01-01
      • 2015-05-09
      • 1970-01-01
      • 1970-01-01
      • 2022-11-04
      • 2018-06-10
      • 2017-08-15
      • 1970-01-01
      • 2018-10-09
      相关资源
      最近更新 更多