Getting entitlement warning while building an Ad Hoc Distribution Bundle for an Iphone App.

Posted by nefsu on Stack Overflow See other posts from Stack Overflow or by nefsu
Published on 2010-05-26T04:53:32Z Indexed on 2010/05/26 5:01 UTC
Read the original article Hit count: 360

I followed Apple's instructions on how to create an Ad Hoc Distrubution bundle but I keep getting what appears to be a fatal Warning during the build process. As per the instructions, I set the signing identity to my distribution profile at the target (instead of the project), created my Entitlement.plist file and unchecked get-task-allow, linked this file to my target and run the build in distribution for device mode.

When I do that, the build completes successful but only after giving the following warning.

[WARN]CodeSign warning: entitlements are not applicable for product type 'Application' in SDK 'Device - iPhone OS 3.1.2'; ignoring...

The last step in the build is the CodeSign and I've noticed that although it ran without errors, it's missing the --entitlement command line option that is given on the official apple instruction guide.

Here is my CodeSign line

/usr/bin/codesign -f -s "iPhone Distribution: My Name" --resource-rules=/Volumes/Data/projects/xcode/MyAppName/build/Distribution-iphoneos/MyAppName.app/ResourceRules.plist /Volumes/Data/projects/xcode/MyAppName/build/Distribution-iphoneos/MyAppName.app

And here is apple's screen shot of what's expected.

here

Can someone please help me figure out if this is something I'm doing wrong because much to my dismay even the dev forum at apple has very little information on this CodeSign warning.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about distribution