LoginSignup
0
0

More than 5 years have passed since last update.

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

Posted at

pod installpod setupをしようとしたところ以下のようなエラーが発生!

$ pod setup
Setting up CocoaPods master repo
Already up-to-date.
[!] There was an error reading '...CocoaPods-version.yml'.
Please consult http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/ for more information.

エラーメッセージのURLに書いてある解決方法はうまくいかず。。。
すこし調べてみるとpsychというのがいけないらしい。

$ gem list
...
psych (2.0.17, 2.0.8)
...

アンインストール。

$ gem uninstall psych
Successfully uninstalled psych-2.0.17

ちなみに2.0.8のほうはデフォルトで入っているものらしく消せなかった。

$ gem uninstall psych -v 2.0.8
ERROR:  While executing gem ... (Gem::InstallError)
    gem "psych" cannot be uninstalled because it is a default gem

ということで以下の状態でpod installpod setupが成功するようになりました!

$ gem list
...
psych (2.0.8)
...
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0