electron-builder icon indicating copy to clipboard operation
electron-builder copied to clipboard

Issue with hdiutil when building on MacOS

Open anestos opened this issue 6 months ago • 19 comments

  • Electron-Builder Version: 24.13.3
  • Node Version: 20.14.0
  • Electron Version: 31.3.1
  • Electron Type (current, beta, nightly): current
  • Target: MacOS arm/x86

During the MacOS build (both for arm and x86) i get this error

  ⨯ hdiutil process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1  failedTask=build stackTrace=Error: hdiutil process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1
    at ChildProcess.<anonymous> (/projects/my-app/node_modules/builder-util/src/util.ts:252:14)
    at Object.onceWrapper (node:events:634:26)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:305:5)

I have tried to downgrade and upgrade electron-builder to 24.9.1 (which i was using earlier) and 25.0.4 respectively and the same happens.

I have debuged the dmg-builder package, trying to figure out the error and it all comes down to hdiutil convert . If i try to run the hdiutil convert command manually i get an error too: hdiutil: convert failed - Resource temporarily unavailable

I tried using maximum compression to force UDBZ format but that didn't fix it either (normally i dont specify compression so it defaults to UDZO

Never had this issue in the past couple of years which i have been building using the same setup, can someone help?

I am using MacOS Sonoma 14.6.1 on an M2 macbook.

Thank you!

anestos avatar Aug 14 '24 15:08 anestos