Cannot start git on OS X El Capitan

I upgraded my os x from mavericks to EL Capitan, and when you 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?

+5
source share
3 answers

Check out this solution:

After upgrading Mac OS X to El Capitan, my local git command no longer worked. When using the git command, the command returns:

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

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

xcode-select --install

+11
source

xcode-select --install runs on your terminal

he works for me

+3
source

Faced with this after upgrading to El-Capitan

 xcode-select --install 

did not work for me even after "Software Search" and "Download". I do not have Xcode.app installed (I did not want to install it), so I fixed it by downloading the Command Line Tools from https://developer.apple.com/downloads/ (requires Apple SignIn) and installing it manually.

After installation, I was able to run git commands again

+1
source

Source: https://habr.com/ru/post/1234663/


All Articles