2016.10.16更新
- 今天在安裝cocoapods時(shí)發(fā)現(xiàn)的這個(gè)錯(cuò)誤,解決方法在此記錄下
其他安裝過(guò)程在此省略啦辐,在終端輸入pod setup 時(shí)出現(xiàn)以下錯(cuò)誤
MacBook-Pro:~ Ben$ pod setup
Setting up CocoaPods master repo
[!] /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
解決方案:在終端依次執(zhí)行以下命令行
$ brew remove git
$ brew remove curl
$ brew install openssl
$ brew install --with-openssl curl
$ brew install --with-brewed-curl --with-brewed-openssl git
- 關(guān)于pod setup 長(zhǎng)時(shí)間沒(méi)有反應(yīng)的解決方式
使用CocoaPods時(shí)遇到pod setup失敗的解決辦法
關(guān)于cocoa pod 管理代碼時(shí)久又,第一次安裝執(zhí)行pod setup 很慢的解決方式
2017.03.02更新
2.更新了MacOS系統(tǒng)之后走诞,安裝時(shí)出現(xiàn)下面的錯(cuò)誤侯谁。
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: cocoapods requires cocoapods-core (= 0.38.2), claide (~> 0.9.1), xcodeproj (~> 0.26.3), cocoapods-downloader (~> 0.9.1), cocoapods-plugins (~> 0.4.2), cocoapods-stats (~> 0.5.3), cocoapods-try (~> 0.4.5), cocoapods-trunk (~> 0.6.1), molinillo (~> 0.3.1)
其實(shí)是依賴(lài)的環(huán)境版本過(guò)低导帝,需要更新
執(zhí)行
sudo gem update --system
出現(xiàn)RubyGems system software updated
在執(zhí)行
sudo gem install -n /usr/local/bin cocoapods即可