$ sudo rm -rf /Applications/Xcode.app
After this, run git and report an error
$ git
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer/") does not exist, use xcode-select --switch path/to/Xcode.app
to specify the Xcode that you wish to use for command line developer tools (or see man xcode-select
)
solve:
The reason is that Xcode no longer exists. Try installing one
Xcode --install the SELECT-$
Xcode the SELECT-: error: the Command Line Tools are already Installed, use "Software Update" to install the Updates
If so, review prompted a switch to achieve additional environmental OK
$ sudo xcode-select --switch /Library/Developer/CommandLineTools/