我尝试在我的iPhone游戏中测试游戏中心,但是当我尝试连接下面的代码行时,我收到一条警告,提示“此游戏未被Game Center识别。”。iTunes connect启用游戏中心
[[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连接中启用Game Center选项。我想我需要先将应用程序添加到“管理应用程序”,然后启用Game Center选项。但是,我怎样才能添加一个应用程序只用于测试?
感谢所有帮助:)
的Cocos2D认可与Game Center无关。 – chrs 2014-01-13 15:24:05