Theres a few gotchas with code signing which I’ve found can result in errors when installing an Ad Hoc application onto a user’s iPhone through iTunes, usually of the sort: “Application Redline was unable to be installed on the iPhone (Mitch iPhone) because it could not be verified”.
This error is really a generic error that says the iPhone could not verify the code signature, and so didn’t complete installing.
Things to double check:
- Bundle Identifier is correct and matches with the one selected in the Provisioning Profile.
- The deviceID has been correctly added to the Provisioning Profile.
- The Entitlements.plist file has been added to the project (see the howto doc on Distribution profiles). This is what catches most people out, since you don’t need it for development.
- Ensure the get-task-allow check box is unticked in the Entitlements.plist
- The Provisioning Profile has been dragged into iTunes as well as the .app or .ipa file.
Also, for AdHoc distribution, I’d recommend packaging up the .app as an ipa file. This is better compatability for windows, because a .app file is a just a folder, and it also allows the iTunesArtwork to be displayed.
At Greenius we use a simple script to package up an AdHoc build. Note you should edit the variables at the top for the appname and the build folder. Later I plan to update this so its a bit more flexible and can take the options from the command line. It also expects a iTunesArtwork.png file for the iTunesArtwork, which should be a 512×512 png.
Download adhocpackage script
Posted: February 25th, 2009 under iPhone.
Comments: 4