“This game is not recognized by Game Center” error

2019-04-28 06:22发布

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?

4条回答
做自己的国王
2楼-- · 2019-04-28 06:49

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).

查看更多
成全新的幸福
3楼-- · 2019-04-28 06:57

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

查看更多
Deceive 欺骗
4楼-- · 2019-04-28 06:59

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

查看更多
相关推荐>>
5楼-- · 2019-04-28 07:10

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!

查看更多
登录 后发表回答