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

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

问题描述

我尝试在我的 iPhone 游戏中测试 Game Center,但是当我尝试连接以下代码行时,我收到一条警告,提示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 连接中启用游戏中心选项.我想我需要先将应用程序添加到管理应用程序",然后启用游戏中心选项.但是如何添加仅用于测试的应用程序?

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 连接启用游戏中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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