iPhone ゲームで Game Center をテストしようとしましたが、次のコード行で接続しようとすると、「このゲームは Game Center で認識されていません」という警告が表示されます。
[[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error) {
if (error == nil)
{
// Insert code here to handle a successful authentication.
}
else
{
// Your application can process the error parameter to report the error to the player.
}
}];
多くのフォーラムを読んだり、Apple のドキュメントを見たりしましたが、iTunes Connect で Game Center オプションを有効にする方法が見つかりません。最初に「アプリケーションの管理」にアプリケーションを追加してから、Game Center オプションを有効にする必要があると思います。しかし、テスト専用のアプリケーションを追加するにはどうすればよいでしょうか?
助けてくれてありがとう:)