Testing Your Game Center-Aware Game

To help you test your game, Apple provides a nonproduction development environment for Game Center. This development environment duplicates the live functionality of Game Center, but is separate from the live servers. The development environment allows you to test your Game Center features without making your game visible to regular users. You should thoroughly test your game in a development environment before submitting it for approval.

Testing a Game Center-Aware Game

As a developer, you are required to create a separate Game Center account for testing. At any given time, you must choose whether to log in to a development environment for testing, or in to the live environment. Start by launching the Game Center app and signing out the currently authenticated player. After this, run your game or another Game Center-enabled game. Depending on how that app is distributed, you enter different credentials. If that app is provisioned for development, enter your test account information (signing you in to the development environment). Otherwise, enter your live account information (signing you in to the live environment. Table 11-1 shows which builds run in which environments.

Table 11-1  Different kinds of app builds

Build

Audience

Game Center Environment

Simulator build

Developer

Development environment

Developer build

Developer

Development environment

Ad hoc distribution build

Beta testers

Development environment

Signed Distribution build

End users

Live environment

A development environment does not allow sharing of information about what games are being played. This prevents your testers from revealing the existence of your game to other players.

Testing Your Game in iOS Simulator

Leaderboards and achievements work the same way in iOS Simulator as they do on a device. However, matchmaking invitations may not be sent or received while your game is running in iOS Simulator.