iTunes connect enable game center

烈酒焚心 提交于 2020-01-05 07:50:34

问题


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.
    }
}];

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?

Thanks for any help :)


回答1:


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




回答2:


I am testing an iPad app with the iPad simulator. I was having a similar problem.

I had followed all the steps as specified in the "Game Kit Programming Guide", including setting up iTunes Connect. Even so I was still getting the error message: This game is not recognized by game center"

My app was only recognized when I deleted it from the simulator and re-installed it, as suggested by iMuller.



来源:https://stackoverflow.com/questions/3937972/itunes-connect-enable-game-center

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!