To build the runtime repo on macOS, you will need to install the Xcode developer tools and a few other dependencies, described in the sections below.
- Install Apple Xcode developer tools from the Mac App Store.
- Configure the Xcode command line tools. You can do this via one of these two methods:
- Run Xcode, open Preferences, and on the Locations tab, change
Command Line Toolsto point to this installation of Xcode.app. This usually comes already done by default, but it's always good to ensure. - Alternately, you can run
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developerin a terminal. This command assumes your Xcode app is namedXcode.appas it comes by default. If you've renamed it to something else, adjust the path accordingly, then run the command.
- Run Xcode, open Preferences, and on the Locations tab, change
To build the runtime repo, you will also need to install the following dependencies:
CMake3.26 or newericu4cpkg-configpython3ninja
You can install them separately, or you can alternatively opt to install Homebrew and use the install-dependencies.sh script provided by the repo, which takes care of everything for you. If you go by this route, once you have Homebrew up and running on your machine, run the following command from the root of the repo to download and install all the necessary dependencies at once:
./eng/common/native/install-dependencies.sh