-
Notifications
You must be signed in to change notification settings - Fork 2.3k
macOS Development Environment
You will need the prerequisites below to build Brave on macOS 10.15+. There are additional details in the Chromium build system requirements at https://chromium.googlesource.com/chromium/src/+/lkgr/docs/mac_build_instructions.md#system-requirements (do not follow any of the instructions after system requirements)
- Xcode 12.2+ (can install through the App Store, or by running
xcode-select --install
) - MacOS SDK 11.1
- NodeJS LTS Version - currently 12.x (
brew install node@12
) - can also usenvm
If
node --version
fails when installingnode@12
through Homebrew or reports a different version, runbrew link --force --overwrite node@12
- npm 6.x (or Yarn)
npm is automatically installed if you install NodeJS through Homebrew. Please ensure that you're really using npm 6.x by running
npm --version
, npm 7 (or later) does not work.
- Git >= 2.17.0
- Git is included with Xcode's "Command Line Tools," but the version provided by Apple is old and sometimes has problems interoperating with current Git stable, e.g. when generating diffs using the default settings. You should install a newer version of Git, e.g. via Homebrew.
Note: If you'd like to use
yarn
instead ofnpm
you can useyarn import
to create ayarn.lock
file from ourpackage-lock.json
.
- Make sure you have spotlight privacy on for the build directory or indexing will slow it down. System Preferences -> Spotlight -> Privacy