
Next, download the Bazel binary installer namedīazel-installer-darwin-x86_64.sh from the Once Xcode is installed, accept the license agreement for all users with theįollowing command: sudo xcodebuild -license accept Step 2: Download the Bazel installer Otherwise, for ios_* rule support, you must have Xcode 6.1 or later with iOS If you don't intend to use ios_* rules, it is sufficient to install the XcodeĬommand line tools package by using xcode-select: xcode-select -install Must also be installed for Bazel to work.

Once installed, you can upgrade to a newer version of Bazel using theįollowing command: brew upgrade bazel Installing using the binary installer Install the Bazel package via Homebrew as follows: brew install bazelĪll set! You can confirm Bazel is installed successfully by running the Install Homebrew (a one-time step): /bin/bash -c "$(curl -fsSL )" Step 2: Install Bazel via Homebrew Installing using Homebrew Step 1: Install Homebrew on macOS You can install Bazel on macOS using one of the following methods:īazel comes with two completion scripts. This page describes how to install Bazel on macOS and set up your environment.
