iOS 游戏中心 - 一台设备上的身份验证错误

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

iOS Game Center - authentication error on one device

iosauthenticationgame-centernserror

提问by soleil

On one of my devices (an iPad mini running iOS7), when I attempt to authenticate in Game Center I get the dreaded error:

在我的一台设备(运行 iOS7 的 iPad mini)上,当我尝试在 Game Center 中进行身份验证时,出现了可怕的错误:

Authentication Error: Error Domain=GKErrorDomain Code=2 "The requested operation has been cancelled or disabled by the user." UserInfo=0x15ef0f00 {NSLocalizedDescription=The requested operation has been cancelled or disabled by the user.}

I am clearly logged into Game Center. I have completely wiped the app from the device and even a fresh run from Xcode after deleting the app I still get the error.

我清楚地登录了游戏中心。我已经从设备上完全擦除了应用程序,甚至在删除应用程序后从 Xcode 重新运行我仍然收到错误。

I can log in with other devices with no problem. I'm signed into the same GC account on different devices. It's just that on this particular device it will not authenticate my app, nor does the app show up in the "Games" list in the Game Center app.

我可以用其他设备登录没有问题。我在不同的设备上登录了同一个 GC 帐户。只是在这个特定设备上它不会验证我的应用程序,该应用程序也不会显示在游戏中心应用程序的“游戏”列表中。

Any suggestions?

有什么建议?

回答by kristiankeane

I was having this same issue with an iPad 3 (retina) running iOS7 - evidently in iOS7 if Game Center is dismissed from your app 3 times the user is NEVER prompted again, and there is no way to reset this by re-logging in to Game Center (as you could in iOS6).

我在运行 iOS7 的 iPad 3 (retina) 上遇到了同样的问题 - 显然在 iOS7 中,如果 Game Center 从您的应用程序中关闭 3 次,用户永远不会再次收到提示,并且无法通过重新登录来重置此问题游戏中心(就像在 iOS6 中一样)。

The current fix that worked for me is to reset settings - Settings->General->Reset->Reset All Settings.

当前对我有用的修复方法是重置设置 - 设置 -> 常规 -> 重置 -> 重置所有设置。

Hopefully Apple fixes this bug in the next release, or at least provides better Game Center documentation for iOS7.

希望 Apple 在下一个版本中修复这个错误,或者至少为 iOS7 提供更好的 Game Center 文档。

回答by Chrix

+1 to workaround above (kristiankeane). Strangely this is only a pb for iOS7 devices. For iOS7 simulator, I was able to log out/log in from Game Center app to get out of a the 3 strikes behavior. (I mean this as a comment to the answer above but I can't add comments yet)

+1 上面的解决方法(kristiankeane)。奇怪的是,这只是 iOS7 设备的 pb。对于 iOS7 模拟器,我能够从 Game Center 应用程序注销/登录以摆脱 3 次罢工行为。(我的意思是这是对上述答案的评论,但我还不能添加评论)