Xcode Command Line Tools Download Mac

Posted on by admin

How to install Apple Xcode Command Line Tools for Mac OS X 10.9 Mavericks. Xcode is a large suite of software development tools and libraries from Apple. The Xcode Command Line Tools are part of XCode. Installation of many common Unix-based tools requires the GCC compiler. The Xcode Command Line Tools include a GCC compiler. Command line tool support for Subversion — including svn, git-svn, and related commands is no longer provided by Xcode. If you need Subversion or related command line tools the you need to install the Command Line Tools package by running xcode-select -install. Download Xcode 11. What's new in Xcode.

  1. Download Xcode For Mac
  2. Xcode Command Line Tools Download Mac Installer
  3. Xcode 11 Command Line Tools

You may have to sign up for a free Apple Developer Account in order to download Xcode 10 from the developer link that BDAqua provided — unless Apple has relaxed its access privileges for these tools.


  1. Xcode menu Preferences Downloads choose 'Command line tools' Click 'Install' button: Fig.02: Installing gcc compiler on Mac OS X Xcode will download package and install copies of the core command line tools and system headers into system folders, including the LLVM compiler, linker, and build tools.
  2. Background: If you updated to Mavericks from an earlier version of Mac OS X, and you previously installed Xcode Command Line Tools, you’ll need to install the new version of Xcode Command Line Tools as described here. If you previously installed the full Xcode package, you’ll need to update Xcode to the newest version (Xcode 5.01 or newer).

Alternatively, If all you want is a a compilation environment for Objective-C, C++, and Swift v4.n, the Command Line Tools (macOS 10.13) for Xcode will provide that at 7GB less storage. You would then need a competent programmer's editor, and you can still build hand-coded cocoa applications. This is my preference.

Xcode is an IDE from Apple to create apps for iPhone, iPad, Mac, Apple Watch, and Apple TV.You probably need some of its tools without install the entire package.Maybe you want to write a command-line software on macOS, or maybe you need to use Homebrew package manager.In that case, you only need the subset of it: Xcode command-line tools.

In this post, I documented three most frequently asked questions about the Xcode command-line tools.

How to Install Xcode Command Line Tools

macOS is bundled with xcode-select.By using this command, you can download and install the latest Xcode command-line tools.What you need is to enter the following command.

Here is an example session when I install Xcode command-line tools.

After you entered the previous command on Terminal, a pop-up window will appear for confirmation.Click Install to continue.If you need to rethink again, click Cancel.

A standard License Agreement will appear.If you want to, you can read them all.Click Agree to continue the installation process.

A pop-up window will appear informing you of the download progress.This time you do nothing.Wait until the download process finished.This can take a long time, it depends on your internet speed.

After the downloading finished, the final pop up window will appear.This is to inform you that the Xcode command-line tools were installed on your machine successfully.

How to Uninstall Xcode Command Line Tools

In the case in the future you don’t need it again and want to free some space, you can uninstall it.

Unfortunately, there is no xcode-select --uninstall command.So, you have to do it manually.Just type the following command to the terminal.

It’ll ask your password you used for login.Enter your password and wait until it’s finished.

How to Update Xcode Command Line Tools

As I mention earlier, you probably use Xcode command line tools just for the Homebrew package manager.So am I on the other machine.

One time when I do some check and update, I got the following message.

Xcode 12 command line tools

But when I open macOS Software Update, there is no available at all.

Line

Then I try to re-install from the command-line but got the following error message instead.

Unfortunately, there is also no xcode-select --update command.That means we need to do two manual steps to update Xcode command-line tools: uninstall and install.

So here is the solution.First, uninstall Xcode installation by removing its folder.

Then re-install again from the beginning.

Download Xcode For Mac

Follow the installation guideline and wait until it’s finished.Xcode command-line tools now updated to the latest version.

Manually Install Command Line Tools for Xcode

If none of above methods work, you can download the installer manually from Apple Developer.To install the command line tools manually, read following steps.

Xcode Command Line Tools Download Mac Installer

  1. Visit Apple Developer download page.
  2. Login with your Apple ID.
  3. Search for Command Line Tools for Xcode.
  4. Select the latest version you need.
  5. Download the Command Line Tools for Xcode*.dmg file.
  6. Open the package installer and follow installation instruction.

Xcode 11 Command Line Tools

References