iPhone Ad Hoc Code signing Gotchas
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.
Posted: February 25th, 2009 under iPhone.
Comments: 4
Comments
Comment from Maria
Time: March 2, 2009, 3:04 pm
I am a happy owner of Iphone but I often encounter the same problem and could not solve it but thanks to your article, my problem is solved!
Comment from Jim Leff
Time: March 7, 2009, 9:08 pm
We think we’ve developed a workaround for the iPhone ad hoc distribution error problem. See: http://www.fretbone.info
Comment from derek
Time: March 26, 2009, 6:20 pm
What happened to the adhocpackage script?
Comment from Marc Powell
Time: December 16, 2009, 3:29 am
If you are looking for a customizable adhoc package script, check out my blog post here:
http://iphonedev.makerlab.org/2009/12/packaging-script-for-iphone-ad-hoc-distribution-builds/
Write a comment
* required fields