LoginSignup
29
11

More than 5 years have passed since last update.

active developer path...does not existを解決

Posted at
xcrun: error: active developer path ("/Applications/Xcode8.2.1.app/Contents/Developer") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
See `man xcode-select` for more details.

確認

Xcodeのインストールディレクトリを確認してみる

$ xcode-select -print-path
/Applications/Xcode8.2.1.app/Contents/Developer

このコマンドで表示されたPathが存在しているかを確かめてみる
おそらく、存在しないためエラーとなっている

複数のバージョンを入れていたり、インストール後にフォルダを移動してたり、RENAMEしたりするとPathが一致しなくなるようです

解決

正しいPathに変更してあげる

$sudo xcode-select -switch /Applications/Xcode9.1.app/Contents/Developer

Password:

$xcode-select -print-path
/Applications/Xcode9.1.app/Contents/Developer
29
11
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
29
11