git - 无法设置 pod(错误 : RPC failed; curl 56 SSLRead() return error -9806)

标签 git macos cocoapods

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/

相关文章:

Git 删除新的未跟踪文件

git diff merge-base 与工作树(使用 ... 符号)

ios - "unexpectedly found nil"超出 viewDidLoad

ios - Cocoapod pod.lock 文件在 pod 安装时通过在 repo url 末尾添加 .git 进行更改

iOS CocoaPod 警告 - "Google has been deprecated"- 使用 pod 'Google/SignIn' 时

git - Android Studio - 推送失败 : fatal: Could not read from remote repository

php - 如何在 Mac OSX 上轻松切换 PHP 版本?

objective-c - 第一次附上一张纸

ios - AFNetworking 不在 xcode8 上使用 cocoapods 构建

java - 哪些 Eclipse JavaFX 项目文件要上传到 GitHub