Ahmad Vatani
Ahmad Vatani

Reputation: 1670

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?

Upvotes: 7

Views: 2326

Answers (3)

Trinadh Koya
Trinadh Koya

Reputation: 1087

xcode-select --install run on your terminal

it works for me

Upvotes: 2

Muhammad Ali
Muhammad Ali

Reputation: 740

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

Upvotes: 17

wmandai
wmandai

Reputation: 304

Faced this after upgrading to El-Capitan

xcode-select --install 

didn't work for me even after 'Finding Software' and Downloading. I don't have Xcode.app installed (Didn't want to install it) so i fixed it by downloading Command Line Tools from https://developer.apple.com/downloads/ (requires Apple SignIn) and installed it manually.

After installation i was able to run git commands again

Upvotes: 2

Related Questions