NSInvalidArgumentException on build

Coming back to using DropDMG after a few months. No changes to the project structure or DropDMG setup.

I get this on the command line:

Error: NSInvalidArgumentException

Here is what is on DropDMG:
Screen Shot 2023-03-11 at 6.36.27 AM

Any suggestions?

I’m using DropDMG 3.6.6 on MacOS 10.14.6.

Thanks for letting me know. Does this happen every time or just the once? If it happens again, please save a diagnostic report right away and submit it via e-mail.

Thanks for sending the report. It looks like macOS is encountering an unexpected error, and reporting it incorrectly, when DropDMG is checking that the layout of the disk image is correct.

If you click this link it will enable some debug logging that should help pinpoint the source of the problem the next time you create a disk image and save a diagnostic report. Then perhaps we can work around the problem.

Or, you can click this link to tell DropDMG not to check the layout, which should avoid this particular error, though there is a small chance that the layout would not be correct so you would want to look at it yourself before distributing the disk image.

I clicked the first link, then built again. This time it completed successfully when I built by dragging the app into DropDMG, but failed from the command line.

I’ve sent you the new diagnostic report.

Thanks for the new report. I see what’s happening here and will work on a new version of DropDMG that better handles the error that Finder is reporting.

I appreciate your help!

Please try the public beta of DropDMG 3.6.7b1.

Thanks, Michael - that worked for me!

1 Like