ERR_ELECTRON_BUILDER_CANNOT_EXECUTE - macOS 10.13.6
See original GitHub issueWith the last version of electron builder create a windows NSIS installer or portable app is impossible from macOS 10.13.6
After some research, the last version that seems working is 21.2.0
but when the electron:build
command is given from vue ui or from cli, also after a downgrade of electro builder, the used version is the latest. This will produce this error:
INFO Building app with electron-builder:
• electron-builder version=22.9.1 os=17.7.0
•
packaging platform=win32 arch=x64 electron=11.0.3 appOutDir=build/win-unpacked
•
building target=nsis file=build/test Setup 1.0.0.exe archs=x64 oneClick=true perMachine=false
• downloading url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.4.1/nsis-3.0.4.1.7z size=1.3 MB parts=1
• downloaded url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.4.1/nsis-3.0.4.1.7z duration=2.711s
• downloading url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-resources-3.4.1/nsis-resources-3.4.1.7z size=731 kB parts=1
• downloaded url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-resources-3.4.1/nsis-resources-3.4.1.7z duration=2.28s
ExecError: /Users/local/Library/Caches/electron-builder/nsis/nsis-3.0.4.1/mac/makensis exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Error output:
Error output:
dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
Referenced from: /Users/local/Library/Caches/electron-builder/nsis/nsis-3.0.4.1/mac/makensis (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: ____chkstk_darwin
Referenced from: /Users/local/Library/Caches/electron-builder/nsis/nsis-3.0.4.1/mac/makensis (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
at ChildProcess.<anonymous> (/Users/local/Sites/apps/electron-app/node_modules/vue-cli-plugin-electron-builder/node_modules/builder-util/src/util.ts:243:14)
at Object.onceWrapper (node:events:483:26)
at ChildProcess.emit (node:events:376:20)
at ChildProcess.EventEmitter.emit (node:domain:470:12)
at maybeClose (node:internal/child_process:1063:16)
at Socket.<anonymous> (node:internal/child_process:449:11)
at Socket.emit (node:events:376:20)
at Socket.EventEmitter.emit (node:domain:470:12)
at Pipe.<anonymous> (node:net:666:12) {
exitCode: null,
alreadyLogged: false,
code: 'ERR_ELECTRON_BUILDER_CANNOT_EXECUTE'
}
Is possible to fix this problem?
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Developers - Build win ia32 exited with code ... - Bountysource
Build win ia32 exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE. loopline-systems. 31 January 2020 Posted by zlab. "electron": "^7.1.11",
Read more >2 - Stack Overflow
electron-build fails with ERR_ELECTRON_BUILDER_CANNOT_EXECUTE ... exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE. No Leads.
Read more >ControlD for macOS 10.13.6 not available - Reddit
I m trying to set up my mac with High Sierra (10.13.6) and although I see the possibility to download the configuration file...
Read more >How cas I notarize an app for mac without xcode?
Notarization requires Xcode 10 or later. Building a new app for notarization requires macOS 10.13.6 or later. Stapling an app requires macOS 10.12...
Read more >Build Instructions (macOS) - Electron
Follow the guidelines below for building **Electron itself** on macOS, for the purposes of creating custom Electron binaries. For bundling and distributing ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can try using yarn resolutions to downgrade electron-builder manually, since it seems as if that might fix it.
For anyone stumbling with this error, for me on Windows, I fixed the problem by specifying an icon path inside build configs.