TL;DR: If the standard terminal commands don’t work for uninstalling and reinstalling the Xcode CLI tools, use this page and search for the latest version of the tools to download. You don’t need a developer account to access it.
- Reinstall Xcode Command Line Tools Catalina
- Reinstall Xcode Command Line Tools Catalina Update
- Reinstall Xcode Command Line Tools Catalina 2016
- Reinstall Xcode Command Line Tools Catalina Download
If you work both in a terminal and on a Mac, then you’re likely familiar with the Xcode Command Line Tools (and the necessary utilities they provide for things like Git, building front-end assets, etc.).
If you’re not familiar, here’s the gist:
[Command Line Tools] enables UNIX-style development via Terminal by installing command line developer tools, as well ass macOS SDK frameworks and headers. Many useful tools are included such as the Apple eLLVM compiler, linker, and Make.
Reinstall Xcode Command Line Tools Catalina
How to install Homebrew on macOS Catalina or M1 Mac. Open Terminal and enter this command xcode-select -install; Click Install from the popup. Go through the T&C and click Agree if you do. Let the download complete.
Apple Developer DownloadsObviously, I’m not an iOS or a macOS developer, but there’s plenty of work that I do in the terminal and I need some of these tools for.
Xcode CLI Tools Won’t Install
- Once it’s installed, you also need to install Command Line tools for it. To install Command Line tools, open Terminal and enter the following command. Xcode-select -install.
- Gallery-dl is a command-line program to download image galleries and collections from several image hosting sites (see Supported Sites).It is a cross-platform tool with many configuration options and powerful filenaming capabilities. Xcode is a complete developer toolset for creating apps for Mac, iPhone, iPad, Apple Watch, and Apple TV.
Recently, I was faced with a situation in which the standard methods of uninstalling and reinstalling the command line tools didn’t work. (That is, I was looking to use $ xcode-select --install
to set up the tools after removing them for reasons outside the point of this post.)
And when I say that I’m looking to install them, I mean doing so after removing anytrace of them on the system. And this includes referencing steps also outlined in the following pages:
In short: I was stuck in a position that I needed to get the CLI tools reinstalled, installed at the latest version, and installed as fast as possible.
And thus, back to the initial paragraph of this post: Use this page and search for the latest version of the tools to download. It’ll provide a dmg
file for download and it’ll resolve it quickly.
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.
Reinstall Xcode Command Line Tools Catalina Update
Step 1: Install Xcode command line tools
Reinstall Xcode Command Line Tools Catalina 2016
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:
Reinstall Xcode Command Line Tools Catalina Download
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 will need to download the installer from the terminal using curl
:
This is a temporary workaround until we fix notarization in our macOS releaseworkflow (#9304).
Step 3: Run the installer
Run the Bazel installer as follows:
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 will 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 ~/.profile
file.
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:
Once installed, you can upgrade to a newer version of Bazel using thefollowing command: