LoginSignup
4
1

More than 3 years have passed since last update.

CatalinaになってからCocoaPodsが動かないよ

Posted at

What's happened?

MacをCatalinaにしたはいいものの、CocoaPodsの操作が全部permissionエラーになる。

pod installは当然動かず、

image.png

再インストールを試みても、sudo gem install cocoapodsで弾かれてしまう。

image.png

Catalinaになってから、アプリケーションごとにアクセス権限を確認されるようになったのですが、それと同じ要因がディレクトリにも波及しているのかもしれないです。

暫定対策

エラーとなっている /usr/binへのインストールから、/usr/local/bin に変更してインストールしたら動きました。

パワー系ソリューションなので根本解決ではなさそうですが、一旦動かしたい場合には以下のコマンドでインストールディレクトリを/usr/binではないディレクトリに指定して、cocoapodsを再インストールしてください。

sudo gem install cocoapods -n /usr/local/bin
4
1
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
4
1