Electron-builder: Cannot build DMG with Big Sur (Xcode 12): hdiutil: unflatten: verb not recognized

Created on 30 Sep 2020  Â·  4Comments  Â·  Source: electron-userland/electron-builder

  • Version: 22.6.0


  • Electron Version: v.8.1.1

  • Target: mac


One of the options for hdiutil being deprecated (similar case: https://gitlab.kitware.com/cmake/cmake/-/issues/20889)
So build operation failed with error

 ⨯ Exit code: 1. Command failed: hdiutil unflatten /Users/XXX.dmg
hdiutil: unflatten: verb not recognized
Usage: hdiutil <verb> <options>
<verb> is one of the following:
help
attach
detach
...

I'm on Big Sur beta 8 (Xcode 12) at the moment but seems like a not recognized option not coming back.

Most helpful comment

Any news here?
Faced same issue on:

Version: 22.4.1
Electron: 7.2.1
Target: Mac

MacOS 11.0 Beta (20A5384c)

All 4 comments

Any news here?
Faced same issue on:

Version: 22.4.1
Electron: 7.2.1
Target: Mac

MacOS 11.0 Beta (20A5384c)

What workaround are people using? Reverting to Catalina? Removing the license?

@JuanIrache

  1. use my patch
  2. or remove license file and then add manually with dmg-license CLI tool

Thanks @k2s Unfortunately I already painfully rolled back to Catalina.

Do you know why your patch does not pass the checks? Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JohnWeisz picture JohnWeisz  Â·  3Comments

NPellet picture NPellet  Â·  3Comments

lbssousa picture lbssousa  Â·  3Comments

StickNitro picture StickNitro  Â·  3Comments

antonycourtney picture antonycourtney  Â·  3Comments