I could successfully use hdiutil for creating a dmg file for my program in Mountain Lion, but after upgrading to Yosemite (and after updating it to 10.10.1), when I execute
hdiutil create -srcfolder build/Thonny.app Thonny-0.2.5.dmg
I get following error:
hdiutil: create failed - error -5341
Verbose mode didn't reveal anything useful.
Folder build/Thonny.app contains a Python application.
Any idea what this error means and what to try next?
UPDATE: Looks like the number of files in my app affects the result. When I remove one of the files (doesn't matter which one), then the command is able to produce the result. Currently there are about 70 files and few folders under Thonny.app/Contents/MacOS