3

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
    Commented Nov 9, 2019 at 15:21
  • xcode-select --install <-- how do I rewrite this command for VSCode? Commented Nov 9, 2019 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
    Commented Nov 9, 2019 at 15:32

2 Answers 2

8
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.

0
-2

Open Terminal, and run the following:

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

0

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