使用 Xcode 6.0.1 构建后,游戏中心无法识别应用程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25916055/
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-15 05:36:44  来源:igfitidea点击:

Application is not recognized by Game Center after building with Xcode 6.0.1

iosxcodeios8game-centerxcode6

提问by aresz

I was building my game app on Xcode 5.1. The Game Center code is already in place and I've already configured my app through iTunes Connect (such as creating the app entry, setting the bundle identifier, setting up the game center leaderboards).

我正在 Xcode 5.1 上构建我的游戏应用程序。Game Center 代码已经就位,我已经通过 iTunes Connect 配置了我的应用程序(例如创建应用程序条目、设置捆绑标识符、设置游戏中心排行榜)。

I got my app working with Game Center successfully when I was in Xcode 5.1. The scores would report to the leaderboards like it should, and I can see my leaderboard entries,etc.

当我在 Xcode 5.1 中时,我的应用程序成功地与 Game Center 一起工作。分数会像它应该的那样报告给排行榜,我可以看到我的排行榜条目等。

I decided to install Xcode 6.0.1 today. I basically compiled my project with this new version of Xcode. But now when I run my app, I get this from my log:

我今天决定安装 Xcode 6.0.1。我基本上用这个新版本的 Xcode 编译了我的项目。但是现在当我运行我的应用程序时,我从我的日志中得到了这个:

GameKitHelper ERROR: {
NSLocalizedDescription = "The requested operation could not be completed because this application is not recognized by Game Center.";

}

}

My app is not recognized by Game Center anymore. All is the same. I did not change anything. Just compile and run, and that's it.

Game Center 不再识别我的应用程序。一切都是一样的。我没有改变任何东西。只需编译并运行,就是这样。

Anyone experiencing this problem when compiling and running Game Center enabled apps in Xcode 6.0.1?

在 Xcode 6.0.1 中编译和运行支持 Game Center 的应用程序时,有人遇到过这个问题吗?

回答by aresz

Alright I'm able to figure out why. Forgot to mention that I upgraded my test iOS device to 8.0 as well.

好吧,我能弄清楚原因。忘了提一下,我也将我的测试 iOS 设备升级到了 8.0。

It turns out that you need to go to Settings>Game Center and manually enable Sandbox.

事实证明,您需要转到设置>游戏中心并手动启用沙盒。

I got it working now. Hopefully this helps anyone who face this issue.

我现在开始工作了。希望这可以帮助任何遇到此问题的人。

回答by jboi

Just had the same issue, but with Sandbox already turned on. I've changed the login to the same Apple ID as I use on iCloud and for GameCenter. Now it works again.

刚刚遇到了同样的问题,但沙盒已经打开。我已将登录名更改为与我在 iCloud 和 GameCenter 上使用的相同的 Apple ID。现在它又工作了。

I'm using Xcode 6.4 and iOS 8.4

我使用的是 Xcode 6.4 和 iOS 8.4