Entitlements.plist not created properly
Asked Answered
N

5

14

reading the doc from apple I need to create an ad-hoc distribution app, and to do so I need the entitlements.plist. when i create a new entitlement, the value "get-task-allow" is not present, so I added by hand.. is right?? at the end the Entitlements.plist is this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>application-identifier</key>
    <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string>
    <key>keychain-access-groups</key>
    <array>
        <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string>
    </array>
    <key>get-task-allow</key>
    <true/>
</dict>
</plist>
Nichol answered 11/6, 2010 at 9:10 Comment(2)
Have the same problem with latest install (xcode_3.2.4_and_ios_sdk_4.1.dmg).Chromatography
I have the same problem. Haven't found a solution yet.Graubert
G
9

Try, in XCode, to go "new file" and in the wizard select "code signing". Select the "Entitlements" file type.

Just name it "Entitlements.plist". Make sure the task-allow is not checked for adhoc distrobution.

This is all you need to do, no need to "roll your own" :)

(Xcode 3.2.2)

UPDATE:

Since Xcode 4.2 the Entitlements.plist was removed from the "new file" menu. You now find it under: Project's Targets > Summary at the bottom of the page.

Goldengoldenberg answered 11/6, 2010 at 9:21 Comment(4)
thanks ricky, I do exactly this, but the key get-task-allow doesn't appear, appear a application-identifier and keychain-acces-groups... so I need to remove them and only leave get-task-allow (false).. I dont'know how is to true, i've added the key, selected boolean and leave unchecked, but the code is true...Nichol
Sounds really weird. I just tried a few settings combination to see if I could make a new entitlements.plist look like that, I can't. Do you have a developer key installed in the keychain? did you add something to the info.plist file or did any sort of extra setup stuff in the projects settings?Goldengoldenberg
yes, I have a developer key installed in the keychain.. i'm private developer.. and sounds strange also for me... I try to change manually the .plist with the only get-task-allow key to false and no other.... thanks RickyNichol
You are welcome, but I am out of ideas.. If it is any help here is the content of a working entitlements.plist file. You can edit yours in a texteditor and paste this in: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>get-task-allow</key> <false/> </dict> </plist>Goldengoldenberg
W
5

You can do so. Also you can select your Entitlements.plist in XCode and select in Main Menu: View / Property List Type / iPhone Entitlements plist. Then your key can be selected from dropdown list and will be called "Can be debugged" (as quite as I remember - it should be the only key avaliable in this list)

Whitworth answered 11/6, 2010 at 9:21 Comment(1)
This is the answer you're looking for. "Can be debugged" is the 'friendly' key for get-task-allow (right click, Show Raw Keys/Values confirms this).Radiograph
S
3

In XCode 4.2, the Entitlements file has been moved. It's now part of the project root's "Targets" section, at the bottom of the list of the "Summary" items.

Stefan answered 28/11, 2011 at 16:47 Comment(0)
S
1

I had this same problem. I manually created a new row "get-task-allow", changed type to boolean and actually had to have it set to true to get the device token.

Stockjobber answered 25/5, 2011 at 13:45 Comment(0)
V
0

I too had the same issue, with enterprise provisioning. After lots of googling I found this. Extracted the ipa, copy the Entitlements.plist to the Payload folder and codesigned with the method in this. didn't do anything else, it started installing properly.

Vesicate answered 9/2, 2015 at 9:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.