LoginSignup
0
0

More than 5 years have passed since last update.

MacOSをアップデートして、gitがエラーを出して使えない場合

Posted at

MacOSをアップデートして、git がエラーを出して使えない場合

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

下記を実行する。

xcode-select --install

もし、アップデートが見つからないうんぬんのアラートが出た場合は下記を実行(自分がそれに該当した)

sudo su -
パスワード入力
xcode-select --switch /Applications/Xcode.app
xcode-select --switch /Library/Developer/CommandLineTools
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