Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>
Catalina (MacOS 10.15), the latest operating system version of MacOS, was released on October 7. If you are a developer and have upgraded to the latest version. When you use some tools, such as git, homebrew, etc., you will encounter the following errors:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
At this time, you need to re install your Xcode command line tool
. Although many people will say that it was already installed when installing homebrew at that time, it is a pity that no other repair method can be found now. You can only re install it again. The installation command is as follows:
xcode-select --install
Then operate according to the pop-up prompt until the installation is successful, which is very simple