我尝试在我的 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 选项。我想我需要先将应用程序添加到“管理应用程序”,然后启用游戏中心选项。但是我怎样才能添加一个只用于测试的应用程序呢?
谢谢你的帮助 :)