はじめに
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.
これでアップデートは完了です。