iTunes Connect启用游戏中心 [英] iTunes connect enable game center

查看:94
本文介绍了iTunes Connect启用游戏中心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在我的iPhone游戏中测试Game Center,但是当我尝试连接以下代码行时,我收到一条警报,提示游戏中心无法识别此游戏".

I try to test Game Center in my iPhone game, but when I try to connect with the following lines of code I get an alert that says "This game is not recognized by 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选项的方法.我想我需要先将一个应用程序添加到管理应用程序",然后启用游戏中心"选项.但是如何添加仅用于测试的应用程序?

Now I've read many forums and looked at the Apple documentation, but I can't find how I can enable the Game Center option at iTunes connect. I think I need to first add an application to "Manage application" and then enable the Game Center option. But how can I add an application only for testing?

感谢您的帮助:)

推荐答案

我认为问题出在错误的cocos2d版本中.移至v0.99.5后,游戏中心开始工作.

I think the problem was in wrong cocos2d version. After moving to v0.99.5 game center started working.

这篇关于iTunes Connect启用游戏中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆