sindresorhus / create-dmg

Create a good-looking DMG for your macOS app in seconds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building the DMG failed. Error: Command failed: hdiutil detach /Volumes/<appname>

othyn opened this issue · comments

commented

Hey, I've been trying to debug this all day and I'm getting no where it seems, hope someone can help shed some light on whats going wrong.

I'm randomly getting the following error on a macOS 13 GitHub Actions runner and locally on macOS 13.4, running v6.0.0 (which at first I thought had fixed it until another run later on revealed it hadn't):

Building the DMG failed. Error: Command failed: hdiutil detach /Volumes/AutoClicker

I'm not getting any more information out of it than that. Its part of a public project, in which the runs can be found here, buried within the fastlane run phase as part of a manual shell script call:

https://github.com/othyn/macos-auto-clicker/actions/workflows/cicd.yml

The really weird thing is there is no consistency or pattern that I can see as to whether it does it or not, it seems to be truly random from my current understanding, which is kind of evident from the mixture of succeeding and failing builds.

I've about ran out of steam on this today and I'll resume debugging with a fresh head tomorrow.

This wasn't an issue on macOS 12 using version 5.3.0, only after upgrading today to macOS 13 and v6.0.0 am I starting to have issues.

commented

Appears this maybe an upstream issue:

LinusU/node-appdmg#142

That should have been resolved in 0.6.5, with this app using "appdmg": "^0.6.6",, which means its not fixed :(

Will have to chase that maintainer as well, not sure why its suddenly being an issue.