Xcode

The first thing you should install is Xcode because it is the prerequisite for brew and many other development tools.

Xcode setup

Download and install it from the App Store or from Apple's website.

CommandLineTools

For installing Xcode command line tools, run:

xcode-select --install

It'll prompt you to install the command line tools. Follow the instructions and you'll have Xcode and Xcode command line tools both installed.

Verify installation of Xcode Command Line Tools

xcode-select -p

# You should see:
# /Library/Developer/CommandLineTools

Check that you can run git:

git --version
# You should see: (latest version)
# git version 2.30.1 (Apple Git-130)

Just to be certain, verify that gcc is installed:

If all went well, you should see the GCC version in the output.

It will show something like this:

Developer Mode

Enable Developer Mode on this Mac so that you can use debugger and other dev tools

Work Directories

Go to terminal and run the following commands:

Create directories in user home

Then you can check out your GitHub projects into respective directories

Last updated

Was this helpful?