xcode “这个游戏不被游戏中心认可。” iPhone开发

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5360233/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:34:14  来源:igfitidea点击:

"This game is not recognized by game center." iPhone Development

iphonexcodeiosios4game-center

提问by ninjaneer

There are already a couple of questions on this but I followed their steps to solve it and it doesn't seem to work for me. Here's what I have done:
1. I double checked to have the bundle identifier in the xcode project to be the exact same as the provisioning profile found on the provisioning portal (it also says Game Center is enabled). No wildcards.
2. I have logged in using a sandboxed account to gamecenter (made 2 accounts incase one wasn't sandbox). I did see the word "sandbox" with some numbers/letters on the top left while signing up for an account, so I'm 100% sure I have a sandboxed account. Tried 2 different sandbox accounts. Tried on 2 different devices (ipad/iphone). Also tried on the iPhone simulator.
3. I have deleted my app from my iPhone many times and tried it again.

关于这个已经有几个问题,但我按照他们的步骤解决了它,它似乎对我不起作用。这是我所做的:
1. 我仔细检查了 xcode 项目中的包标识符是否与在配置门户上找到的配置文件完全相同(它还说游戏中心已启用)。没有通配符。
2. 我已经使用沙盒帐户登录到游戏中心(创建了 2 个帐户,以防其中一个不是沙盒)。在注册帐户时,我确实在左上角看到了带有一些数字/字母的“沙盒”一词,因此我 100% 确定我有一个沙盒帐户。尝试了 2 个不同的沙箱帐户。在 2 种不同的设备(ipad/iphone)上尝试过。也在iPhone模拟器上试过。
3. 我已经多次从我的 iPhone 中删除我的应用程序并再次尝试。

I'm running 4.3/xcode 4 on iPhone + iPad. I'm still receiving the message. Any help would be appreciated. Thanks!

我在 iPhone + iPad 上运行 4.3/xcode 4。我仍然收到消息。任何帮助,将不胜感激。谢谢!

采纳答案by Nick Forge

From memory (I battled with this recently)…

从记忆中(我最近与这个作斗争)......

In addition to what you've already done, you have to setup your app (even if it's using a fake bundle ID) in ITC (iTunes Connect). This means you need to put in a name, category, a screenshot and a bunch of other stuff (you can just put dummy data in there for testing purposes). Then you need to create a version of your app, then enable Game Center on that version.

除了您已经完成的工作之外,您还必须在 ITC (iTunes Connect) 中设置您的应用程序(即使它使用的是伪造的捆绑 ID)。这意味着您需要输入名称、类别、屏幕截图和一堆其他内容(您可以将虚拟数据放入其中以进行测试)。然后您需要创建应用程序的一个版本,然后在该版本上启用 Game Center。

There might have been a few other important steps that I've forgotten, but in between the voodoo dancing and making sacrifices to the gods of iOS etc., that's all I can recall.

可能还有一些其他重要的步骤我已经忘记了,但在巫毒舞蹈和向 iOS 等众神献祭之间,我只记得这些。

回答by ayreguitar

Deleting the old app from your device can sometimes help too. Looks like it stores some data with an app and will try to login to actual Game Center instead of Sandbox Mode. This solved my problem when trying to add Game Center in an update.

从您的设备中删除旧应用有时也有帮助。看起来它用一个应用程序存储了一些数据,并会尝试登录到实际的游戏中心而不是沙盒模式。这解决了我尝试在更新中添加 Game Center 时的问题。

回答by CloudspyreSteve

This is how I solved the problem. I opened the Settings App, then select Game Center. At the bottom under Developer, turn on "Sandbox".

这就是我解决问题的方法。我打开设置应用程序,然后选择游戏中心。在开发人员下的底部,打开“沙盒”。

回答by Rampant Creative Group

I had a similar problem. Make sure you have the exact same app version in xcode and ITC. For example, if you have 1.0 in xcode and 1 in ITC it will not work. The version is a string not a float, so 1.0 != 1.

我有一个类似的问题。确保您在 xcode 和 ITC 中拥有完全相同的应用程序版本。例如,如果您在 xcode 中使用 1.0,在 ITC 中使用 1,它将无法工作。版本是字符串而不是浮点数,所以 1.0 != 1。

回答by TigerWang

My situation is , It showed "this game is not recognized by game center",and my ipad is jail-broken. so I uninstall Appsync 5.0+ in Cydia--> logout game center---> reinstall app, it's ok now

我的情况是,显示“游戏中心无法识别此游戏”,并且我的ipad已越狱。所以我在 Cydia 中卸载 Appsync 5.0+--> 注销游戏中心 ---> 重新安装应用程序,现在可以了

回答by aardvarkk

In my case, almost everything people had suggested was in already correct for my app.

就我而言,几乎人们建议的所有内容都已经适用于我的应用程序。

My bundle IDs were correct, my iTunes Connect record was set up, etc. However, the version numberof the build that had been uploaded to iTunes Connect was not recent (and didn't match the version I was building onto the test device).

我的捆绑 ID 是正确的,我的 iTunes Connect 记录已设置,等等。但是,已上传到 iTunes Connect的版本号不是最新的(并且与我在测试设备上构建的版本不匹配) .

After uploading a newer build to iTunes Connect with a matching version number, it appeared to fix the problem.

将具有匹配版本号的较新版本上传到 iTunes Connect 后,似乎解决了问题。

I'm not guaranteeing it won't break in the future (because the authentication seems to be very flaky and has worked previously, even with the old version record), but for now it seems to have solved the problem for me.

我不保证它将来不会中断(因为身份验证似乎非常不稳定并且以前工作过,即使使用旧版本记录也是如此),但现在它似乎已经为我解决了问题。

回答by user865007

I learned from somewhere that if your machine(iphone or ipad) is jail-broken, it will assume you use the real game center without the sandbox one.

我从某处了解到,如果您的机器(iphone 或 ipad)越狱了,它会假设您使用没有沙盒的真正游戏中心。

So, if your devices are jail-broken, just restore it, and give it a try.

因此,如果您的设备已越狱,只需恢复它并尝试一下。

Hope this will help you.

希望这会帮助你。