OSX AppSandbox: Could not get services from gamed

Hey,


Has anyone recently had this issue with an "AppSandbox" OSX Game. The error that is shown is the following:

Could not get services from gamed.
Please file a radar including GameKit logs, and any gamed crash logs.
ERROR Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.gamed.osx was invalidated."
UserInfo={NSDebugDescription=The connection to service named com.apple.gamed.osx was invalidated.}



I found a reference to someone having this issue back in Yosemite. So I'm guessing people have submitted Game Center OSX apps since then.

http://stackoverflow.com/questions/29295423/osx-game-center-couldnt-communicate-with-a-helper-application



Just to clarify:

- OSX Game

- Game Center Enabled

- Game Center Setup in iTunes connect and the Provisioning Profile.

- Entitlement App Sandbox = YES

- Entitlement set to com.apple.security.network.client = YES (and in iTunes Connect)


Anyone have any ideas or tips? I'm hoping it is a missing setting somewhere...

Answered by Danoli3 in 88745022

I've posted a radar: rdar://23594124


I have a solution to the issue for now.

The following key is required to be added to the entitlements in AppSandbox mode to fix the bug posted.

com.apple.developer.game-center

as a (BOOLEAN) = YES


This along side the standard, automatically generated if selected com.apple.security.network.client

Accepted Answer

I've posted a radar: rdar://23594124


I have a solution to the issue for now.

The following key is required to be added to the entitlements in AppSandbox mode to fix the bug posted.

com.apple.developer.game-center

as a (BOOLEAN) = YES


This along side the standard, automatically generated if selected com.apple.security.network.client

Danoli3


It looks like you resolved the issue (23594124). I was especially interested because I don't think I have ever run across this error and I thought I had seen everything 🙂 Thanks so much for writing this up. It clearly is not seen by the majority so really great to get the issue documented.

Yeah no worries! It was a nightmare figuring it out, just want to eliviate as much as that as possible from others haha.


It must be that a lot of developers don't do much testing at the Sandbox level, and get their Apps rejected at the Review stage, with the specific request to add this key to the entitlements or remove Game Center. More reason to get this documented and auto generated 🙂

OSX AppSandbox: Could not get services from gamed
 
 
Q