Fixed Cocoapods Error

修复Cocoapods error

今天使用pod update更新所有框架,结果提示

Update all pods
Analyzing dependencies
[!] There was an error reading '/Users/xxxxx/.cocoapods/repos/master/CocoaPods-version.yml'.
Please consult http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/ for more information.

找了好多方法,也试了好多 终于找到了原因 记录一下

sudo rm -fr ~/.cocoapods/repos/master
sudo gem uninstall cocoapods
sudo gem update
sudo gem uninstall psych
sudo gem install psych -v 2.0.0
sudo gem instal cocoapods
pod setup

就ok了

Comments !

blogroll

social