After macOS is upgraded to macOS Big Sur, when we use brew to install or update the software, there will be an error of
Error: Your CLT does not support macOS 11.6., we only need to reinstall
xcode-select to solve it.
Enter the following command
sudo rm -rf /Library/Developer/CommandLineTools sudo xcode-select --install
At this time, you will be prompted to install
xcode-select. In the pop-up box, we click install, then the agreement pops up, and we click agree again. Then just wait for the installation to complete.