0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Macのターミナルで xcrun: error: ~ が出た時の対処

Posted at

Mac OS を Mojave から Catalina へアップデートしたタイミングか、
もしくは更にターミナルの標準を bash から zsh に変更した後から以下が出るようになった。

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

過去にも見たことあるな…と思いつつ、 macOSアップデート後の『xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)...』の対処法 を参考に、以下のコマンドをターミナルで実行し、ポップアップで開くウィンドウから xcode をインストールするだけで対処完了!

xcode-select --install

AppStoreでXCodeをインストール(常に最新) していたとしても上記が出ます。
どうせならAppStoreからXCodeをインストール(Update含む)したタイミングで上記のコマンドも実施してくれたらいいのにな…と、前回同事象になった時にも思ったことをこの記事を書いていて思い出しました…。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?