In order to use Game Center in an app, that app needs to have the “gamekit” key added to its info.plist file. According to the release notes on this feature:
Any items USER plists create that duplicate keys the IDE creates will be over written by the IDE (basically you can't replace or augment entries the IDE creates)
Only top level keys are dealt with (keys that are immediately children of PLIST > DICT in the Plist XML format)
In order to add this key so that the app works properly with Game Center it must be added to the UIRequiredDeviceCapabilities array which Xojo already creates with the “armv7” key. What is the best way to set the “gamekit” key in the info.plist file so that the app works correctly? Or do I need a feature request?
[quote=203209:@Norman Palardy]No need
See 38737[/quote]
Ok great! Is there another way to do this in the mean time while I wait for r3? Maybe with a post build script? I tried to make one similar to how Retina is enabled but it didn’t properly edit the plist.
Seems about right
The only thing I can think of that might affect this is the “domain” argument may need to actually be the full path to the plist including the plist extension
try the command manually after you do a build in terminal to get the right command & syntax
once you have that the shell will be darned close to the same
I’ve been trying a variety of combinations and google searches for 45 minutes now haven’t been able to make any progress. I guess I’ll have to wait for someone who is more knowledgeable about using defaults to help me fix this.
[quote]WARNING: The defaults command will be changed in an upcoming
major release to only operate on preferences domains. General
plist manipulation utilities will be folded into a different
command-line program.[/quote]
There IS an alternative tool apple ships called PlistBuddy which might work better
The reason I say this is defaults has this small note WARNING: The defaults command will be changed in an upcoming
major release to only operate on preferences domains. General
plist manipulation utilities will be folded into a different
command-line program.
so its possible that you ARE writing to a plist but its one IN your preferences dir and NOT the one you think your writing to