Ahmad Vatani Ahmad Vatani - 1 month ago 20
Git Question

Can't start Git in OS X El Capitan

I upgrated my os x from mavericks to EL Capitan and when want to use git in android studio, i got this error:

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


Anyone have a solution?

Answer

See this solution:

After updating Mac OS X to ‘El Capitan’, my local git command was not working anymore. When using the git command, the command line returns:

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

The solution to fix this is to reinstall the command line developer tools using this command:

xcode-select --install

Comments