This is not well documented by Apple, as far as I am aware. If you get an error stating “The application-identifier entitlement is not formatted correctly” when uploading an app to Apple, here is the solution.
- Delete your old Entitlements.plist if you have one.
- Create a new file of type “code signing,” “entitlement.”
- Clean and build.
There are two new “identifier” fields in the entitlement certificate that were not present before. It has nothing to do with the “get-task-allow” field you’re used to fiddling with for ad-hoc builds. May the upload gods bless your new binary.
2 Comments
Do you have any updates for XCode 4? When I create a new Entitlements.plist file, it only has one line for allowing debugging. I am getting the error on build for archiving, even before I can upload to iTunes. When i send the bundle to a tester in my provisioning profile, he can’t install it because of improper entitlements.
I haven’t run into problems with Xcode 4 yet. Take a look at the first answer here though and see if it fixes your problem:
http://stackoverflow.com/questions/5449487/iphone-entitlements-problem-with-xcode-4-for-ad-hoc-distribution
Its probably easiest to edit as text rather than using the plist editor.