N Kaushik

xcrun error active developer path Applications/Xcode.app/Contents/Developer doesn't exist

February 09, 2021

xcrun: error: active developer path (“/Applications/Xcode.app/Contents/Developer”) does not exist

This error I got after I deleted XCode to free up some space. I was not working on iOS and deleted it to get some more space. But after that, once I was trying to use git, it was throwing this error:

xcrun: error: active developer path (/Applications/Xcode.app/Contents/Developer”) does not exist

Solution:

This error can be solved easily. The first thing you need is to reinstall xcode-select.

xcode-select --install

validate the installation:

which xcode-select

Then, finally, reset it.

sudo xcode-select --reset

If xcode-select is already installed, you don’t have to run the first command, only the last will work.


Subscribe to my Newsletter