LoginSignup
0
0

More than 3 years have passed since last update.

Mac OS Mojaveにアップデート後にターミナルでGitコマンドエラーが出た時の対処法

Last updated at Posted at 2019-06-01

MacのOSをMojaveにアップデートした後にターミナルでGitを扱おうと思ったらエラーが出てきてしまいました。

こちらがエラーメッセージです。

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

こちらの対処方法について記載していきます。

エラーメッセージをコピペ→検索→xcodeのインストール

まずこういった場合の対策としてエラーメッセージをコピペして検索するのが一番です。

検索で調べたことを元に記事にしますと、

ターミナル上で

$ xcode-select --install

と入力しEnter、xcodeをインストールすることで解決できました。

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