- Published on
Fixing Xcode path
xcrun: error: active developer path (“/Applications/Xcode.app/Contents/Developer”) does not exist
Ever faced this issue ?
Xcode comes bundled with a set of command line tools which are required by some of other tools like gcc or cmake.
But sometimes due to various reasons like uninstalling Xcode or moving the Xcode application to different path, you might face issues with the Xcode cli.
Best way to fix this ?
You can remove the existing Xcode CLI tools with the below command
sudo rm -rf /Library/Developer/CommandLineTools
Later, you can install the tools again
xcode-select --install
Still facing the issue ?
You can try this command to reset the path
sudo xcode-select --reset