cocoapods 安裝過(guò)程中的遇到的問(wèn)題

最近新電腦重新裝cocoapods遇到了問(wèn)題

1.首先查看源,gem source -l

會(huì)出現(xiàn)*** CURRENT SOURCES ***

https://gems.ruby-china.org

如果不是這個(gè)請(qǐng)換成這個(gè),淘寶的已經(jīng)不能用啦

2.安裝cocoapods

sudo gem install -n /usr/local/bin cocoapods —pre

套輸入密碼,然后

Successfully installed cocoapods-1.2.0

Parsing documentation for cocoapods-1.2.0

Done installing documentation for cocoapods after 2 seconds

1 gem installed

3.看看版本

pod —version

出現(xiàn) 1.2.0

開始安裝 pod setup

可能會(huì)出現(xiàn)這個(gè)問(wèn)題

Setting up CocoaPods master repo

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

Cloning into 'master'...

remote: Counting objects: 1076833, done.

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

error: RPC failed; curl 56 SSLRead() return error -980654.00 KiB/s

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: Counting objects: 1076833, done.

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

error: RPC failed; curl 56 SSLRead() return error -980654.00 KiB/s

fatal: The remote end hung up unexpectedly

fatal: early EOF

fatal: index-pack failed

解決辦法

gem install rails

出現(xiàn)

Successfully installed rails-5.0.1

Parsing documentation for rails-5.0.1

Done installing documentation for rails after 0 seconds

1 gem installed

開始安裝? pod setup

會(huì)等很久

Setting up CocoaPods master repo

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

Cloning into 'master'...

remote: Counting objects: 1076992, done.

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

remote: Total 1076992 (delta 88), reused 4 (delta 4), pack-reused 1076725

Receiving objects: 100% (1076992/1076992), 374.99 MiB | 49.00 KiB/s, done.

Resolving deltas: 100% (503235/503235), done.

Checking out files: 100% (136384/136384), done.

Setup completed

完成啦

附:【鏈接】終端更新Ruby步驟和遇見(jiàn)奇葩問(wèn)題的解決辦法

http://www.lxweimin.com/p/8169f5d7f364

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容