LoginSignup
5

More than 5 years have passed since last update.

MacOSをMojaveにアップデートしたらgitコマンドが使えなくなった

Posted at

エラー内容

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

ググると出てくる解決法

このコマンドをTerminalから入力して、インストールしようとするも。

$ xcode-select --install
xcode-select: note: install requested for command line developer tools

以下のようなダイアログが出て、インストールできない。
このソフトウェアは、現在ソフトウェア・アップデート・サーバから入手できないため、インストールできません。

解決法

直接、手動でインストールすると直る。
https://developer.apple.com/download/more/
(command line tools と入力し、最新のものをDownloadする)

参考

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