You need to add a document type. Select the relevant target in the Xcode project window, Get Info, select the Properties tab, then add the relevant info in the Document Types view at the bottom. Here you can specify a ".dmg" file type, and the icon you wish to use for it.