Xcode Cli Tools Install

  

Install xcode command line tools again ($ xcode-select -install). After these steps you will see a pop to install the new version of the tools. I'm using Big Sur Beta 11.0 Beta (20A5374i) on x8664 Intel MacBook Pro 16'. Installing Xcode 12 GM and CLT for Xcode 12 GM didn't fix the problem.

  1. Xcode Command Line Tools Install Failed
  2. Xcode Cli Tools Install For Free
  3. Xcode Cli Tools Install For Mac
  4. Xcode Command Line Tools Install Error
  5. Xcode Command Line Tools Install Big Sur


You can download the Xcode command-line tools in either of two ways:

Xcode Cli Tools Install

To install the necessary Xcode tools using Xcode on the Mac:

  1. Start Xcode on the Mac.
  2. Choose Preferences from the Xcode menu.
  3. In the General panel, click Downloads.
  4. On the Downloads window, choose the Components tab.
  5. Click the Install button next to Command Line Tools.
    You are asked for your Apple Developer login during the install process.

To install the necessary Xcode tools from the Web:

You can download the Xcode command line tools directly from the developer portal as a .dmg file.

  1. On the Mac, go to https://developer.apple.com/downloads/index.action
    You are asked for your Apple Developer login during the install process.
  2. On the 'Downloads for Apple Developers' list, select the Command Line Tools entry that you want.

See Also

Question or issue on macOS:

I am trying to update Command line tools on my mac osx.

But when I run the update command, I get this error:

This doesn’t work either:

What is the exact string I should specify after sofwareupdate -i?

How to solve this problem?

Solution no. 1:

For future travelers, here’s a version-agnostic approach. First, run softwareupdate --list. This will probably take a couple of minutes. When it’s done, you’ll see a bulleted (with an asterisk) output like this:

Xcode command line tools install failed

Find the bullet that refers to the Xcode command line tools. Copy that entire line (except the asterisk…). In the above case, you would copy: Command Line Tools (macOS High Sierra version 10.13) for Xcode-10.1

Then, run the install command (as shown by Brendan Shanks) with what you copied inside quotes:

Solution no. 2:

Tools

I’m going to answer a slightly different question here, because this question came up when I searched for a solution to my problem. Hopefully it’ll help someone (and it’ll surely help me next time I run into the same issue).

I wanted to upgrade the command line tools from version 8 to 9. The App Store didn’t suggest this upgrade, and neither did softwareupdate --list.

installed the new version of the tools. But clang --version still gave 8.0.0 as the version number. xcode-select -r and rebooting didn’t solve this issue.

xcode-select -p returned /Applications/Xcode.app/Contents/Developer, and clang --version reported an installation directory under there. I thought I’d start over again.

deleted version 8 of the tools. But xcode-select --install said the command line tools were already installed.

Now, sudo xcode-select -p returns /Library/Developer/CommandLineTools/.

It seems that the problem was that the new version of the tools are installed to a different directory, and xcode-select -r is not clever enough to find the latest version.

Solution no. 3:

Run softwareupdate -i 'Command Line Tools (macOS El Capitan version 10.11) for Xcode-8.2'. The quotes are important.

Xcode Command Line Tools Install Failed

Solution no. 4:

I faced similar problem on MacOS Mojave version 10.14.3 with Xcode 10.3 installed.
The real problem was, when I installed the Xcode 10.3, I deleted the “Xcode-beta.app” first and then installed the new version. Therefore, when I tried installing CLion for C++ development and configuring it, CMake gave me error And Updating Command Line Tool didnt work for me:

and showed me this response in terminal

Then I tried to check the version of Clang using:

And the response lead me to the real problem i.e. Active Developer path was still pointing to Old version of Xcode that I had already deleted.

Therefore, I switched the active developer path to latest Xcode App installed using:

Xcode Cli Tools Install For Free

And everything worked like a charm automatically.

Xcode Cli Tools Install For Mac

Xcode

Xcode Command Line Tools Install Error

Solution no. 5:

Xcode Cli Tools Install

Xcode Command Line Tools Install Big Sur

I ran the same command with sudo and that did the trick.

sudo softwareupdate -i 'Command Line Tools (macOS El Capitan version 10.11) for Xcode-8.2'

Solution no. 6:

when upgrading to MacOS Catalina, Version 10.15.* you can install the command line tools for xcode 11.3 like this:

Hope this helps!