情報系人間のブログ

プログラミング、開発に関することを書いていきます。

coocapodsでThere was an error reading '...CocoaPods-version.yml'.

pod install時に以下のエラーが出た。

$ pod install
Updating local specs repositories
[!] There was an error reading '/Users/xxxxxx/.cocoapods/repos/master/CocoaPods-version.yml'.
Please consult http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/ for more information.

調べたところpsychというgemが悪さをしているらしい。

$ gem list psych

*** LOCAL GEMS ***

psych (2.0.15, 2.0.8)

バージョンがでかい方をuninstallしてみる。

gem uninstall psych -v 2.0.15

これで動いた。

$ pod install
Updating local specs repositories
...