“This game is not recognized by Game Center” error

若如初见. 提交于 2019-12-07 04:26:42

问题


I'm struggling to get past the first stage of getting Game Center integration to work. I've got this far:

I've created a new, clean app, added the GameKit headers and the basic authenticateWithCompletionHandler: method in the app delegate.

Starting the app in the simulator brings up the login dialogue.

If I create a NEW account via the login dialogue, then that user gets authenticated and the app loads successfully.

If I attempt to log in with that account a second time, OR use an account that I've created using the simulator's Game Center app, the login is rejected with a "this game is not recognized by Game Center" error.

Resetting the simulator and reinstalling via XCode has no effect. The app is set up for Game Center via iTunes Connect, and the bundle identifiers are all correct.

Can anyone suggest where I'm going wrong here?


回答1:


This post explains it pretty well (skip past the Cocos2D-specific part at the top): http://www.cocos2d-iphone.org/forum/topic/20998 You can see all the steps needed there. And if it still doesn't work, then the bottom line is: wait 24 hours after creating the app (weekends don't count).




回答2:


So having played around with this for a while, I ended up creating a completely fresh app on iTunes Connect and in XCode, and a new set of user accounts as well. That's not suffering from the same problems, from which I assume that there was some issue with the bundle identifier and/or things getting confused with inadvertent use of 'live' accounts.

Thanks for the help, though!




回答3:


Check Your app is Game Center enabled in iTunes. Also check the correct bundle Identifier you are given in you project




回答4:


You have to create a test account through itunesconnect. The test accounts are flagged and work with the GameCenter sandbox server.



来源:https://stackoverflow.com/questions/6616426/this-game-is-not-recognized-by-game-center-error

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