LoginSignup
5
6

More than 5 years have passed since last update.

macOS SierraにしたらGitが動かなくなった時の対処法

Last updated at Posted at 2016-09-22

macOS Sierraにアップグレードしたあと、以下のようなエラーでGitが動かなくなるかもしれない。

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcru

アップグレード作業によりXcode Command Line Developer Toolsが壊れてしまったのかもしれないため、再インストールが必要である。再インストールには以下のコマンドを実行すればよい。

xcode-select --install

ダイアログが出現するので、指示に従ってインストールすれば、またGitが使えるようになる。

5
6
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
5
6