解決辦法如下:
先刪除全局的緩存:
$ sudo rm -fr ~/Library/Caches/CocoaPods/
$ sudo rm -fr ~/.cocoapods/repos/master/
把當(dāng)前 Pods 目錄清空:
$ sudo rm -fr Pods/
然后糠睡,重新安裝cocoapods
$sudo gem install cocoapods 溫馨提示:蘋果系統(tǒng)升級(jí) OS X EL Capitan 后改為 $sudo gem install -n /usr/local/bin cocoapods,根據(jù)自己的系統(tǒng)選擇操作哦疚颊。
再次
$ pod setup
慢慢等吧狈孔,看你網(wǎng)速了,最終出現(xiàn)
CocoaPods 1.0.0.beta.8 is available.
To update use: gem install cocoapods --pre
[!] This is a test version we'd love you to try.
For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.
Setup completed
至此問(wèn)題解決完成材义。
想試用beta版的自己按上面給的提示安裝
煎熬我很久的問(wèn)題均抽,終于在今天早上搞定了!順便分享給大家~