Dmg files vanish while AppWrapper is trying to package my apps

Hi,

I have an issue using AppWrapper. When I choose “Wrap, pack & notarize”, the process starts normally and DropDMG creates and manages the dmg file, but when it finishes that step, the dmg file just vanishes. Then, AppWrapper complains “No such file or directory” and stops.

I’ve tried various combinations, changing the target folder, enabling/disabling options in AppWrapper, but the issue persists.

I have no idea which process removes the dmg file; I’ve checked using fs_usage and the Console, both don’t return anything interesting.
I’m starting to assume it’s some kind of new MacOS “feature” which would mistakenly detect “suspicious” dmg files creation and “clean” them, but I don’t have any clue that this has been implemented in MacOS.

Help would be welcome.

I guess that your AppWrapper still the same, but have you updated DropDMG or your OS since the last time your “CI/CD” system was working? Or updated some processing script? Is this destination DMG place in an iCloud sync’d folder?

Do you have something like Acronis installed? I had some problems when Acronis decided that DefaultFolder was a threat. I tried to install a new version of DefaultFolder and Acronis “vanished” the app.

Yes for MacOS; I had MacOS 26 (latest release) installed before installing MacOS 27.

No.

No, iCloud syncing is disabled since day 1.

That’s not my issue, sadly.

Thanks for your answers.

Why do you use AppWrapper manually and not with a script? Have you done the needful like restarting the computer or using another computer?

Maybe that broke your DropDMG or AppWrapper. If those apps use some tools like hdiutil that are now deprecated maybe something bad occur.

Maybe you need to update those apps, if possible. Better not update the OS while not stable and with tools updated next time.

Because I’ve not yet spent time on that. And I’m not really interested in going to the complicated way right now, especially since I doubt it would solve my actual problem.

Yes for restarting the computer. As for trying on another one, dealing with the certificates is always a nightmare, so it would be time-consuming (it usually takes me around one week to set up the other computer I have).
I think what would help most is understanding how a file can vanish without user interaction.

AppWrapper is up to date, but I’ll check about DropDMG.

Usually, I try an OS beta on just one computer and only if I find no severe bugs, I install it on the other computer some weeks later (when it’s in the user-beta cycle). I’ve done so this time, too. Normally, there are always workarounds for the eventual bugs at this stage.

I’m wondering why AppWrapper, AppDMG or the OS would remove files without even telling it.

Thanks for your answers.

This us a known behaviour when Safari downloads DMGs: they were opened and deleted after ejection. Maybe macOS 27 did adapt this behaviour systemwide?

Possibly a good guess. If true, that’s a terrible decision, because this setting cannot be turned off (my Safari→Settings→General→“Automatically open safe files” (I’m translating, not sure about the exact spelling) is already unchecked); deleting files that easily would be a huge mistake concerning how we can trust the OS.

This doesn’t make any sense because many developers need to make dmgs.

@Arnaud_N : have you contacted Michael Tsai?

Before contact, make sure being able to provide ways to reproduce the case.

I recall I had some issues a year or two ago - try changing the output location to somewhere other than ‘same as application’

Well, I don’t even know if DropDMG is to blame.
Also, I’m not confident with writing a “professional” mail in English. So I’m looking at solutions using other ways.

On my computer, it’s 100% reproducible, but since I don’t know why, I can’t provide the steps.

Sadly still the same outcome.

Thanks for your answers.

Asking never hurts: “Hey, I have some wild problem. Is this DropDMG or am I being pranked by macOS”.

I get emails in French and have no problems at all answering those.

Maybe App Wrapper or DropDMG do not have Full Disk Access?
macOS may allow the tool to write into a temporary path, but deny the permission needed to move it to the target folder, causing the temporary written file to get discarded upon exit.

Good guess, but no, it doesn’t change anything.
I’ve asked the author of DropDMG, who doesn’t believe the issue lies in his product. Now asked Sam and waiting for his answer…
Why on earth am I the only one getting this? :man_shrugging:

Is App Wrapper quarantined for some reason?

Because you are the only one with the right mix of mess able to generate the issue, OS + tools + paths + scripts + settings

I now tried on my MacBook Pro and the result is exactly the same :exploding_head:

Doesn’t look like that.

Well, I was ironic. I can suspect my configuration is rare if I’m the only one having this trouble. I just can’t understand there are behaviours like this which just don’t leave any tracks, on supposedly tested applications and operating systems, and just stop one from going on.

I asked Sam, the creator of AppWrapper, who couldn’t help me currently. Also, I tried to set the destination folder on an external disk.

Not sure what to do next…

Now that is unexpected. How do you use AppWrapper? First the dmg and then notarisation I will assume. What happens if you disable notarisation? Just for testing. Do you have any build script which moves the app around? Have you tried to make another AppWrapper document? Or use a script to make the dmg and then do manual notarisation in AppWrapper.