xcrun error after macOS Ventura (13.0) update

Wolfgang Klinger
1 min readOct 26, 2022

--

How to update Command Line Tools for Xcode successfully.

Photo by Vie Studio: https://www.pexels.com/photo/word-error-on-white-surface-4439425/

You got the following error in your terminal after the recent macOS Ventura (13.0) update?

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

And the advice you find on the Internet

[sudo] xcode-select — install
[sudo] xcode-select — reset

does not work either?

I tried the above commands and the only thing I got was a dialogue that did nothing, and I was unable to close it again (had to force quit the installer).

This is what finally worked for me:

$ softwareupdate -l
Software Update Tool
Finding available software
Software Update found the following new or updated software:
* Label: Command Line Tools for Xcode-14.0
Title: Command Line Tools for Xcode, Version: 14.0, Size: 687109KiB, Recommended: YES,

This gives you a label you can pass to the --install option:

softwareupdate — install "Command Line Tools for Xcode-14.0"
Software Update Tool
Finding available softwareDownloaded Command Line Tools for Xcode
Installing Command Line Tools for Xcode
Done with Command Line Tools for Xcode
Done.

or simply use

softwareupdate — all — install — force

Hurray!

hth

--

--

Wolfgang Klinger
Wolfgang Klinger

Written by Wolfgang Klinger

Programmer, Photographer, Gardener

No responses yet