xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun can occur when the Command Line Tools package is not properly installed or is missing after a macOS upgrade to Ventura. Let’s resolve it.
- sudo privileges
Open the Terminal app on your Mac.
- Run the following command to install the Command Line Tools:
- This will prompt a dialog box asking if you want to install the tools. Click
Installto proceed with the installation. If the installation is successful, you should see a message that says
The software was installed.
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.