Install Xcode Command Line Tools Catalina

Ruby 2.6.3p62 (2019-04-16 revision 67580) universal.x8664-darwin19 I've also take a look in this but could not able to solve the problem. Edit: I've used this. Xcode-select -install. But got - xcode-select: error: command line tools are already installed, use 'Software Update' to install updates. Xcode is a complete developer toolset for creating apps for Mac, iPhone, iPad, Apple Watch, and Apple TV. Xcode brings user interface design, coding, testing, debugging, and submitting to the App Store into a unified workflow. Downloading and updating Xcode. The current release of Xcode is available as a free download from the Mac App Store. With the much smaller Xcode Command Line Tools via xcode-select -install; With the much smaller Xcode Command Line Tools via manual download. For people running the latest version of Catalina (10.15.2 at the time of this writing), this has worked when the other two solutions haven't. Installing node-gyp using the full Xcode. I just updated XCode and the command line tools to 11.4. Now when I run svn it says “svn: error: The subversion command line tools are no longer provided by Xcode”. The release notes say “Command line tool support for Subversion — including svn, git-svn, and related commands is no longer provided by Xcode. Configure the Xcode command-line tools to use thenewly-installed version of Xcode byrunning the following from the command line: This is the correct path for most cases,when you want to use the latest version of Xcode.If you need to use a different version,specify that path instead.

This page describes how to install Bazel on macOS and set up your environment.

You can install Bazel on macOS using one of the following methods:

Bazel comes with two completion scripts. After installing Bazel, you can:

  • Access the bash completion script
  • Install the zsh completion script

Installing using the binary installer

The binary installers are on Bazel’sGitHub releases page.

The installer contains the Bazel binary.1 Some additional librariesmust also be installed for Bazel to work.

Step 1: Install Xcode command line tools

If you don’t intend to use ios_* rules, it is sufficient to install the Xcodecommand line tools package by using xcode-select:

Otherwise, for ios_* rule support, you must have Xcode 6.1 or later with iOSSDK 8.1 installed on your system.

Download Xcode from theApp Store or theApple Developer site.

Once Xcode is installed, accept the license agreement for all users with thefollowing command:

Step 2: Download the Bazel installer

Next, download the Bazel binary installer namedbazel-<version>-installer-darwin-x86_64.sh from theBazel releases page on GitHub.

Note: on macOS Catalina, due to Apple’s new app notarization requirements,you need to download the installer from the terminal using curl:

This is a temporary workaround until the macOS release flow supportsnotarization (#9304).

Step 3: Run the installer

Run the Bazel installer as follows:

Install Xcode Command Line Tools Catalina Mac

The --user flag installs Bazel to the $HOME/bin directory on your system andsets the .bazelrc path to $HOME/.bazelrc. Use the --help command to seeadditional installation options.

If you are on macOS Catalina and get an error that “bazel-real” cannot beopened because the developer cannot be verified, you need to re-downloadthe installer from the terminal using curl as a workaround; see Step 2 above.

Step 4: Set up your environment

If you ran the Bazel installer with the --user flag as above, the Bazelexecutable is installed in your $HOME/bin directory. It’s a good idea to addthis directory to your default paths, as follows:

You can also add this command to your ~/.bashrc, ~/.zshrc, or ~/.profilefile.

All set! You can confirm Bazel is installed successfully by running thefollowing command:

To update to a newer release of Bazel, download and install the desired version.

Installing using Homebrew

Step 1: Install Homebrew on macOS

Install Homebrew (a one-time step):

Step 2: Install Bazel via Homebrew

Install the Bazel package via Homebrew as follows:

All set! You can confirm Bazel is installed successfully by running thefollowing command:

Tools

Once installed, you can upgrade to a newer version of Bazel using thefollowing command:

Xcode is the tool developers use to build apps for the Apple ecosystem – MacOS, iOS, and all things Apple.

This guide will walk you through how to successfully install Xcode onto your Mac, from start to finish.

Here are some handy tips to know before you get started:

  • Xcode only runs on a mac. If you are on a PC, sadly you won't be able to use Xcode.
  • You'll need a good, stable internet connection. The latest version is around 8 gigabytes in size.
  • Be sure to have at least 30 gigabytes of free space on your computer. The latest .xip file (v11.4.1 at the time of writing) is ~8 gigabytes zipped. When you unzip it, that's another 17 gigabytes. Then you'll need the command line tool, which is yet another 1.5 gigabytes.

Here's an overview of the steps to install Xcode

  1. Download Xcode
  2. Install the command line tool
  3. Open the new version
  4. Delete files

Note that I have listed some Terminal commands in the steps below. These commands can be typed into your present working directory. This means that you don't need to navigate to any particular folder.

If you really want to, you can first type cd before typing the commands in the below steps. This will return you back to the home folder.

Step #1: Download Xcode

There are two ways to do this. For the latest version and a theoretically 'easy' installation, you can use the App Store. I don't recommend this option.

Install Xcode Command Line Tools Catalina Download

I prefer to use the developer site. This comes with the bonus option of being able to download any version you'd like.

Option #1: Download via the App Store for the latest version (not my preferred option)

In theory, this should be a seamless and pain-free process. But if the installation fails for any reason on the last step, it is very hard to troubleshoot.

There are a few reasons for failure, and no easy way to know which is the underlying cause. If you do encounter a failure, you will need to re-download the entire file again each time you try to fix the failure. As the latest version is 8 gigabytes, I didn't much enjoy this approach.

But if you're feeling brave, here are the steps:

  • Open the App Store on your mac
  • Sign in
  • Search for Xcode
  • Click install or update

Option 2: Download via the Developer site for a specific version (my preferred option)

  1. Head to the 'more' section of the Apple developer website
  2. Sign in with your iTunes account id
  3. Type in the version that you'd like, and download the Xcode_x_x_x.xip file. Keep in mind that Xcode 11.4.1 is 8 gigabytes, so this will take awhile depending on your internet connection.
  4. Once the file is downloaded, click on .xip to extract it. Your laptop will extract it to the same folder you downloaded it to. This extraction process is automatic. You don't need to do anything more after you click on the .xip file. This step will take a few minutes.
  5. [Optional] Once extracted, rename the application to “Xcode11.x.x” if you are using multiple versions.
  6. Drag application to the Applications folder
  7. [Optional] Set the new Xcode version as the default. Open Terminal and type sudo xcode-select -switch /Applications/Xcodex.x.x.app . Replace x.x.x with the version number. For example: Xcode11.4.1.app. You will need to enter in your computer admin password. I'm pretty sure this will update the default Xcode version for all users on your computer, so best to check with other users first

Step #2: Install the command line tool (CLT)

If you have multiple users on your computer, you will need to update the CLT for each user.

Download .dmg

Install Xcode Command Line Tools Catalina

To update the CLT, go to app developer website and download the command line tool .dmg.

If you have never installed Xcode before, you may be able to update with your Terminal by typing in xcode-select --install instead of visiting the developer website.

But if you have an existing version of Xcode installed on your machine, you'll probably see this error:

This means you'll need to go to the developer website instead.

Installing the CLT

When the .dmg has finished downloaded, double click the file to open it. This will open a little window that looks like this:

Double click the box and follow the prompts to install the CLT. It will take a few minutes to complete.

It may ask you at the end of the installation whether you want to move this to the trash bin. When it does this, it's talking about moving the .dmg file to the trash bin. Since you should no longer need this file. I always say yes to this.

Step #3: Open Xcode

Open the Applications folder and open the new version of Xcode. If you renamed Xcode, make sure you open the correct application

Xcode may prompt you to install additional components. Click install. This will take a few minutes.

While it's installing, check that your default Xcode version is the one you just downloaded:

  • Open Terminal
  • Type brew config
  • You should see “CLT” and “Xcode” versions, as well as everything else. This should reflect the version that you have just downloaded. In my case, I downloaded Xcode 11.4.1.

Once the components are installed, Xcode will launch. You should be able to pick up your old projects and continue where you left off seamlessly*.

*Note that if you use any proxy tools, such as Charles, you will need to re-install those certificates in your simulator again.

If you encounter any errors while trying to build or run a project, check which device you are trying to launch. The new version may not remember the device you were using before. If so, click on the device and choose 'Add additional simulators' from the drop down menu to add the device you want.

Step #4. Delete the files

If you don't need the older versions of Xcode on your computer, you can uninstall them and get some hard drive space back.

You can also delete the .xip file of the version you just downloaded, as well as the CLT.dmg file.

That's everything. I hope this has helped you successfully install Xcode. Have fun with it!