"Game Center account services are currently unavailable" on Simulator

I do not know when this happened, possibly after upgrading to Mac OS Lion and Xcode 4.1. But I'm not sure.

I have a pretty big iOS project that is limited to Game Center / Game Kit. I immediately realized: on the simulator, I can no longer connect to Game Center. Even when I open the "Game Center" -App on the simulator and click on "Create Account", for example, I get an error: "Game Center account services are currently unavailable. Please try again later."

I’ve visited Google many times, here’s what I tried:

  • I configured my router, as Apple says in the documentation, although it worked before the settings a few weeks ago. I also checked different networks / routers.

  • I completely uninstalled the Xcode developer tools (all / Developer / -Folder) and the iPhone Simulator cahce in ~/Library/Application Support/iPhone Simulator and reinstalled everything

  • Of course, I reinstall the device many times

The simulator has an internet connection. When I open Safari, I can browse the network.

Thank you, I will really make out any help or advice! Fabian

+7
source share
1 answer

According to this topic:
https://discussions.apple.com/thread/3206110?start=0&tstart=0

the solution should be reset by your hosts file (in /private/etc/hosts ) and the connection should work again

The default hosts file should look like this:

 ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost 

in any case, it would be useful if you provide us with some debugs, for example

 NSLog(@"%@",[error description]) 

where error is of type NSError from NSHTTPURLResponse sendSynchronousRequest:

+10
source

All Articles