LoginSignup
6

More than 3 years have passed since last update.

[OS X] El Capitanでcocoapodsインストールが出来ない

Last updated at Posted at 2015-11-22

El Capitanでcocoapodsをインストールしようとすると以下のようなエラーが出た

ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/xcodeproj

原因はEl Capitanからrootlessというのが追加されたという
例えば、root権限を持つユーザーでも
/usr、/sbin、/System など一部アクセス制限が掛かるらしい

以下解決方法

以下のようにrootlessを無理やり解除する方法があるが、セキュリティ上非推奨

sudo nvram boot-args=“rootless=0”

ということでインストールフォルダを変更する方法のほうがオススメ

sudo gem install -n /usr/local/bin cocoapods

これで試したみたらできた

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
6