Could not get services from gamed - ERROR Error Domain=NSCocoaErrorDomain Code=4097

Hello,


I've just implemented game centre in a small apple TV app.


The first time it ran giving me a game center signin page.


It then fails with this message


2015-11-23 20:42:28.157 Star Fighter Mayhem[21388:5535458] Could not get services from gamed. Please file a radar including GameKit logs, and any gamed crash logs. ERROR Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.gamed" UserInfo={NSDebugDescription=connection to service named com.apple.gamed}


Just wondering if anyone else has seen this, before I post a radar.


This is my complete log - with other weird error messages as well.


2015-11-23 20:42:27.921 Star Fighter Mayhem[21388:5535229] Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find:

/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: mach-o, but not built for TV OS simulator

2015-11-23 20:42:27.921 Star Fighter Mayhem[21388:5535229] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x7fb13344aab0 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)

2015-11-23 20:42:27.922 Star Fighter Mayhem[21388:5535229] Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find:

/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: mach-o, but not built for TV OS simulator

2015-11-23 20:42:27.922 Star Fighter Mayhem[21388:5535229] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x7fb13344aab0 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)

2015-11-23 20:42:27.922 Star Fighter Mayhem[21388:5535229] Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find:

/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: mach-o, but not built for TV OS simulator

2015-11-23 20:42:27.923 Star Fighter Mayhem[21388:5535229] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x7fb13344aab0 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)

2015-11-23 20:42:27.924 Star Fighter Mayhem[21388:5535229] Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found. Did find:

/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: mach-o, but not built for TV OS simulator

2015-11-23 20:42:27.924 Star Fighter Mayhem[21388:5535229] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x7fb13344aab0 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)

2015-11-23 20:42:28.156 Star Fighter Mayhem[21388:5535458] Could not get services from gamed. Please file a radar including GameKit logs, and any gamed crash logs. ERROR Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.gamed" UserInfo={NSDebugDescription=connection to service named com.apple.gamed}

2015-11-23 20:42:28.157 Star Fighter Mayhem[21388:5535458] Could not get services from gamed. Please file a radar including GameKit logs, and any gamed crash logs. ERROR Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.gamed" UserInfo={NSDebugDescription=connection to service named com.apple.gamed}

a

Replies

I also get this error. It seems to be a frequent problem for me now that my devices are on iOS 9.2. For me it shows immediately after GC authentication. It seems to not be a problem after a minute (but that's a long time to wait for GC!). Did you ever figure out a solution?

I have not seen this issue myself but I rarely use the simulator. Have you filed a bug yet?


If so, could you please post the number here?


If not, could you file one? That would be very helpful and get this on our radar.

I faced the same issue, couple of times:


Details:

Do Not Disturb Schedule is turned on

On iPhone 7 (iOS 9.4)

Please test database changes to Private RecordZone during the Do Not Disturb Schedule.


Please could others confirm whether it happened during "Do Not Disturb Schedule" ?


Error:

Error connecting to CloudKit daemon: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.cloudd" UserInfo={NSDebugDescription=connection to service named com.apple.cloudd}