LoginSignup
0
3

More than 3 years have passed since last update.

Big Surアップデート後にコマンドラインツールのアップデートを要求される

Posted at

はじめに

BigSurアップデート後にbrew doctorを実行すると警告メッセージ(macOS 11をサポートしていない)が表示されることがあります。
この場合、コマンドラインツールをアップデートする必要があります。

$ brew doctor

Warning: Your Command Line Tools (CLT) does not support macOS 11.
It is either outdated or was modified.
Please update your Command Line Tools (CLT) or delete it if no updates are available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.

コマンドラインツールのアップデート

メッセージ通りにsoftwareupdateからコマンドラインツールのアップデートを行います。

$ softwareupdate --all --install --force
Software Update Tool

Finding available software
No new software available.

コマンド実行後、上記のように「No new software available.」と表示された場合、コマンドラインツールを削除し、再インストールします。

$ sudo rm -rf /Library/Developer/CommandLineTools
$ sudo xcode-select --install

doctorを再実行する

アップデートが完了したら、brew doctorを実行して確認します。

$ brew doctor
Your system is ready to brew.

これでアップデートは完了です。

0
3
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
3