2016-09-11 34 views
3
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時,都會發生這種情況。 卡住了。無法設置pods(錯誤:RPC失敗; curl 56 SSLRead()返回錯誤-9806)

回答

0

我有針對的CocoaPods $莢同樣的錯誤安裝

出現這種情況與SecureTransport後端使用捲曲。你可能會發現這個錯誤的一些解釋here

我已經嘗試了許多許多其他方式來解決,並在一個點上,我用隧道熊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 
+0

雖然這可能在理論上回答這個問題,但[這將是更可取的](https://meta.stackoverflow.com/q/8259)在此包含答案的基本部分,並提供供參考的鏈接 –

0

看起來您的Xcode版本的路徑已損壞。 您可以修復是:

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

如果您安裝的Xcode的多個版本,你需要與你的Xcode.app像/Applications/Xcode 7.3.1.app/Contents/Developer實際位置替換/Applications/Xcode.app/Contents/Developer

相關問題