How to Install the Xcode Command Line Tools on a Mac

Xcode is an awesome suite of Apple software developer tools designed for macOS, iOS, tvOS, and watchOS. The Xcode tools include GUI tools and the primary application is the integrated development environment (IDE). Software developers can accomplish so many things with Xcode, using the built-in Interface Builder to create graphical user interfaces is just one of many possibilities. Best of all, it’s free! If you are interested in using Xcode, this tutorial will guide you through a few simple steps to install the Xcode Command Line Tools on your Mac.

Check To See If The Xcode Command Line Tools Are Already Installed On Your Mac

Installations of Xcode 6.1 and later automatically include the Xcode Command Line Tools in the installation. If you have Xcode installed but you are not sure if you already have the tools on your Mac, follow these steps to check:

Launch Xcode on your Mac

1. Launch Xcode on your Mac.

2. In Xcode, choose Preferences from the Xcode drop down menu.

3. The General window should appear. Click on Locations in the General window.

4. If the Command Line Tools option shows your version of Xcode, then the tools are already installed on your Mac. If the Command Line Tools are not installed, your version of Xcode will not show up. If that is the case, go to the next step.

Install Xcode Command Line Tools by Xcode

If Xcode is installed on your Mac, but the Command Line Tools are not installed, follow these steps to install them from the Xcode program:

1. Launch Xcode on your Mac.

2. In Xcode, choose Preferences from the Xcode drop down menu.

3. The General window should appear. Click on Downloads in the General window.

4. Then choose Components

5. Click the Install button located next to Command Line Tools

6. Enter your Apple Developer login

Install Xcode Command Line Tools by theWeb

If Xcode is installed on your Mac, but the Command Line Tools are not installed, follow these steps to install them from the Web:

1. Go to the Xcode developer portal.

2. Enter your Apple Developer login

3. Read the Apple ID & Privacy notice and click Continue

4. Agree to the Terms and click Submit

Command Line Tools

5. Select Command Line Tools from the More Downloads for Apple Developers list.

6. Click on the link on the right side of the Command Line Tools box to download the Xcode Command Tools from the site.

7. Install the tools on your Mac

Install Xcode

Xcode is a free app that can be downloaded from the Web (it will direct you to the App Store), or directly from the App Store on your Mac. You may have to consider installing Xcode on your Mac to realize the many benefits of using the Command Line Tools. If Xcode is not installed on your Mac, but you would like to use it, along with it’s Command Line Tools, follow these steps to install Xcode from the App Store:

Go to the App Store on your Mac and get Xcode

1. Go to the App Store on your Mac and get Xcode

2. Install the app on your Mac

3. Go back to step 1 and confirm that the Command Line Tools have been installed with the app.

4. If the tools are not there, go to step 2 in this tutorial and install them using your new Xcode.

Contact Apple Support

If you followed the steps in this tutorial to install the Xcode Command Line Tools on your Mac, but you were not able to access the Tools or install them on your Mac, you can contact Apple Support or the Genius Bar for more assistance.