Operation not permitted during dmg building on Big Sur with Apple Silicon

2020-12-10 11:45:45.386 diskimages-helper[54280:350655] *useEffectiveIDs**** euid/egid changed to 501,20 (uid/gid is 501,20)
DIHLDiskImageCreate() returned 1
hdiutil: create: returning 1
hdiutil: create failed - Operation not permitted

...

⨯ hdiutil exited with code ERRELECTRONBUILDERCANNOTEXECUTE stackTrace=
Error: hdiutil exited with code ERRELECTRONBUILDERCANNOTEXECUTE
at ChildProcess.<anonymous> (/Users/gnattu/src/poi/nodemodules/builder-util/src/util.ts:243:14)
at Object.onceWrapper (node:events:483:26)
at ChildProcess.emit (node:events:376:20)
at maybeClose (node:internal/child
process:1063:16)
at Process.ChildProcess.handle.onexit (node:internal/childprocess:295:5)


By removing "-fs", "HFS+", "-fsargs", "-c c=64,a=16,e=16", dmg creation does work on Big Sur. Looks like HFS+ image creation is broken.

Accepted Reply

copy an app to HFS+ volume, it seems that some files lost com.apple.cs.CodeSignature attribute

Replies

copy an app to HFS+ volume, it seems that some files lost com.apple.cs.CodeSignature attribute
This may be a problem of bigSur. It performs well in Catalina