The error 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.
Prerequisites
- macos
- sudo privileges
Solution
Open the Terminal app on your Mac.
- Run the following command to install the Command Line Tools:
xcode-select --install
- This will prompt a dialog box asking if you want to install the tools. Click
Install
to proceed with the installation. If the installation is successful, you should see a message that saysThe software was installed.
Conclusion
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.