I have been searching for a few days now an cannot find a thing.
I have an ipod touch 4g and have just started adding Game Center to a game i'm working on.
This works fine in the simulator, but when i try to test on my device (running the app in debug mode), the game isn't recognised by Game Center.
I've seen on other forums that i should be in sandbox mode, but i cant seem to enter it on my device.
Please could someone tell me how to enter SB mode
Thanks
Had the same problem. This worked for me: 1. log out GC, UNINSTALL APPSYNC if your're jailbroken, kill all processes. 2. create adhoc build, sign it with an appropriate entitlement, upload to your webserver, whatever. 3. download/install this ipa to your device and run, when asked create new account, or use existing - it will be registered (or created if new) inside sandbox.
The simplest fix that should work for many people is as follows:
It seems this whole process is simpler now in iOS 8. All I had to do was go to
Settings
->Game Center
and under theDeveloper
section, enableSandbox
. At that point I was able to use Game Center in the development build of my game with my personal account and also with a sandbox account just fine.Although what Kendall explains used to work in the past, from iOS9 it seems you have to create the sandbox accounts from iTunesConnect.
From the iOS Provisioning Portal:
Basically there are two steps:
What you do is:
It helps to create the sandbox account in the sim first, just to be sure you aren't really create a Gamecenter account.
To be fully sure of creating a sandbox account, run Gamecenter on the simulator and create an account there.