Question: how to install dmg file on iphone?
Answer: You can't install them directly on iOS. You need to use Xcode (free downloadable from AppStore). In the Xcode you go to Window>Organizer, there to Devices and than drag the app from the dmg file to the device. Xcode may prompt you to turn the device into the development mode for that.