• Bent Petersen

How to fix Mac OS: xcrun error: invalid active developer path, missing xcrun

On my Mac, I suddenly ran into an error when I tried to update my oh-my-zsh. I have no idea why, as I haven’t changed any configuration lately. I’m running MacOS Big Sur version 11.2.3. The error was:


xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

Fortunately, there is an easy solution to that — just install, or reconfigure, the Xcode toolkit. You can either download it from the Appstore, from the Apple Developer download section, or you can install it via the Terminal:

$ xcode-select --install

If you already have it installed and need to reset it, you can do the following (you probably need sudo rights to do that):

$ sudo xcode-select --reset

Link to Medium post: https://bentpetersen.medium.com/mac-os-xcrun-error-invalid-active-developer-path-missing-xcrun-fdf412398154



36 views0 comments

Contact

Bent Petersen

University of Copenhagen
GLOBE Institute
Section for Evolutionary Genomics
Øster Farimagsgade 5
1353 Copenhagen K
DENMARK

  • Black Facebook Icon
  • Black Twitter Icon
  • Black Instagram Icon
  • LinkedIn

© 2020 by Bent Petersen

Subscribe to Site