question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hdiutil exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE

See original GitHub issue

I’m not able to generate builds for MacOs, I’ve made several attempts to change versions and the error persists:

⨯ hdiutil exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE stackTrace= Error: hdiutil exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE at ChildProcess.<anonymous> (/.../node_modules/builder-util/src/util.ts:243:14) at Object.onceWrapper (events.js:417:26) at ChildProcess.emit (events.js:310:20) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)

I did the tests with the following combinations electron-builder: 20.36.2 electron: 3.0.9

electron-builder: 21.1.6 electron: 7.15.0

electron-builder: 21.1.5 electron: 5.0.8

and also with the latest version for both electron-builder: 22.9.1 electron: 11.0.2

All tests were done using a Macbook Air Catalina version 10.15.7 and Node version 12.16.3. Sometimes I have some success using debug mode with DEBUG=electron-builder node_modules/.bin/electron-builder build -m Additional information: I do not use any kind of antivirus.

Please help me, I create a big project but in every version released I have problems building versions for MacOs.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:40 (13 by maintainers)

github_iconTop GitHub Comments

4reactions
michaelwbarrycommented, Nov 11, 2022

On Ventura 13.0.1 managed to solve it by allowing application (in my case the terminal I was using to run the build) to update or delete other applications. It is in Privacy & Security -> App Management. Screenshot 2022-11-11 at 21 49 08

This worked for me, thanks.

3reactions
zander-indo-bosecommented, May 6, 2021

Since updating to Big Sur 11.3.1 I am receiving this same error message and I am unable to build a dmg file.

Xcode: Version 12.5 (12E262) Python: 2.7.16 electron: “~11.4.5” electron-builder: “^22.11.1”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Operation not permitted during dmg… | Apple Developer Forums
hdiutil: create failed - Operation not permitted ... ⨯ hdiutil exited with code ERRELECTRONBUILDERCANNOTEXECUTE stackTrace=
Read more >
loopline-systems - Bountysource
I'm not able to generate builds for MacOs, I've made several attempts to change versions and the error persists: ⨯ hdiutil exited with...
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 >
Hdiutil exited with code err electron builder cannot execute jobs
Search for jobs related to Hdiutil exited with code err electron builder cannot execute or hire on the world's largest freelancing marketplace with...
Read more >
hdiutil Man Page - macOS - SS64.com
Syntax hdiutil verb [options] DESCRIPTION hdiutil uses the DiskImages framework to ... -quiet close stdout and stderr, leaving only hdiutil's exit status to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found