Building Brave on MAC fails

Description of the issue:

I’ve tried a while ago to build 1.53.x on MAC and it failed.
Now I tried aain, with 1.61.x and it still fails building, with the same error:

ERROR at //build/config/ Assertion failed.
assert(false, “Unsupported target_os: $target_os”)
Unsupported target_os: macos

I’ve followed all steps in MAC requirements, but maybe I am missing something

Steps to Reproduce (add as many as necessary):

  1. git clone brave browser
  2. npm install, npm run init, npm run build

Expected result:

Reproduces how often:

Operating System and Brave Version(See the About Brave page in the main menu):
OS: MAC 12.6.9
node: v18.18.0
xcode-select version 2395.
xcode version 14.2 (14C18)
Python 3.9.6
Python 2.7.18

ls xcode-select -p/Platforms/MacOSX.platform/Developer/SDKs
MacOSX.sdk MacOSX13.1.sdk MacOSX13.sdk

Additional Information:

Hello, any feedback about the mentioned issue?

For those facing this issue, it seems there was some error in generating the file by brave scripts. Made a “dirty” fix on my end in src\brave\build\commands\lib\config.js somewhere around line 536:

if (args.target_os == “macos”) {
args.target_os = “mac”;


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.