构建步骤(macOS)
- macOS >= 11.6.0
- (外部)
- Python >= 3.7
- Rosetta 2
- We recommend installing Rosetta if using dependencies that need to cross-compile on x64 and arm64 machines. Rosetta can be installed by using the softwareupdate command line tool.
$ softwareupdate --install-rosetta
If you are on arm64 architecture, the build script may be pointing to the wrong Xcode version (11.x.y doesn’t support arm64). Navigate to /Users/<user>/.electron_build_tools/third_party/Xcode/
and rename Xcode-13.3.0.app
to to ensure the right Xcode version is used.
________ running 'python3 src/tools/clang/scripts/update.py' in '/Users/<user>/electron'
Downloading https://commondatastorage.googleapis.com/chromium-browser-clang/Mac_arm64/clang-llvmorg-15-init-15652-g89a99ec9-1.tgz
Retrying in 5 s ...
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
Retrying in 10 s ...
Downloading https://commondatastorage.googleapis.com/chromium-browser-clang/Mac_arm64/clang-llvmorg-15-init-15652-g89a99ec9-1.tgz
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
This issue has to do with Python 3.6 using its own copy of OpenSSL in lieu of the deprecated Apple-supplied OpenSSL libraries. certifi
adds a curated bundle of default root certificates. This issue is documented in the Electron repo . Further information about this issue can be found here and .