4

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

3
  • 1
    Have you tried these solutions on SO?
    – fsb
    Nov 9 '19 at 15:21
  • xcode-select --install <-- how do I rewrite this command for VSCode? Nov 9 '19 at 15:23
  • 1
    @ManelAriapala the command you said installs or updates the Command line tools. xcrun needs to be installed. Whether VSCode uses it or Xcode, it doesn't matter.
    – anki
    Nov 9 '19 at 15:32
7
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.

1
  • thanks Ankii problem solved... Nov 9 '19 at 15:58
-2

Open Terminal, and run the following:

xcode-select --install This will download and install the Command Line Tools package and fix the problem.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .