-
install x-code (from app store)
-
Install Command Line Tools
- Run from the command line: xcode-select --install
- Choose install tools from the prompt and agree to the terms
- If you receive a message saying "Can't install the software because it is not currently available from the Software Update server"... it's probably because the command line tools are already installed...
- Agree to the license by typing sudo xcodebuild -license
- Press enter, then q
- Then on the next prompt, type agree