26
8

More than 1 year has passed since last update.

xcode-select: error: command line tools are already installed, use "Software Update" to install updatesが表示された場合の対処法

Posted at

環境

  • パソコン: Macbook

起きたこと

xcode-selectのCLIツールを久々に利用しようとしたら、エラーとなったので解決方法の備忘としてメモ

$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

解決方法

Mac自体のOSアップデートを繰り返すうちに何らかの問題が発生していたのか根本原因は、分からないですが一旦古いツールを削除して再インストールしたら解決したので、こちらの手順を紹介します。

1. 古いツールを削除

次のコマンドを実行して古いツールを削除します

sudo rm -rf /Library/Developer/CommandLineTools

2. CLIツールをインストール

xcode-select --install

スクリーンショット 2021-06-26 13.05.17.png

スクリーンショット 2021-06-26 13.13.44.png

26
8
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
26
8