How do I fix this issue while on VS Code?
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
I've updated my bash profile
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityHow do I fix this issue while on VS Code?
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
I've updated my bash profile
xcode-select --install
This installs or updates Command Line Tools. It can be done manually too, by downloading the tools from Developer Website.
You might need to point it to the install location of the tools too.
sudo xcode-select -switch /Library/Developer/CommandLineTools
Then restart the Terminal/ VSCode.
Open Terminal, and run the following:
xcode-select --install This will download and install the Command Line Tools package and fix the problem.