views:

858

answers:

2

Hi all! 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"&gt;
<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>
+2  A: 

Hi

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)

RickiG
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...
ghiboz
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?
RickiG
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 Ricky
ghiboz
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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict> <key>get-task-allow</key> <false/></dict></plist>
RickiG
thanks!!! I'll try and after I write to you to the result...:)
ghiboz
A: 

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 you 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)

kpower