I am running macOS 10.15 and Xcode 11.5.
I ran the following commands as listed here: https://github.com/brave/brave-browser
git clone email@example.com:brave/brave-browser.git
npm config set target_os macos
npm config set target_arch x64
npm run init
npm run build
That is when I got the error in the above screenshot.