使用 Game Center 验证 GKLocalPlayer.localPlayer
时,控制台会记录一条消息:
_authenticateUsingAlert:Failed to authenticate player with existing credentials.Error: Error Domain=GKErrorDomain Code=15 "The requested operation could not be completed because this application is not recognised by Game Center." UserInfo={GKServerStatusCode=5019, NSLocalizedDescription=The requested operation could not be completed because this application is not recognised by Game Center., NSUnderlyingError=0x600001fc57a0 {Error Domain=GKServerErrorDomain Code=5019 "status = 5019, no game matching descriptor: ios:***.***.***:1.4:4+-1" UserInfo={GKServerStatusCode=5019, NSLocalizedFailureReason=status = 5019, no game matching descriptor: ios:***.***.***:1.4:4+-1}}}
此后,我可以访问玩家属性,例如头像和姓名,但Game Center不会显示任何排行榜或成就,也无法提交分数。
iOS 15.2,在任何设备或模拟器上都会发生同样的情况。
我已经尝试了网上能找到的所有方法:
- 检查正确的捆绑 ID
- 在 App Store Connect 中创建排行榜
- 在 App Store Connect 中创建一项成就
- 在 App Store Connect 中创建全新应用
- 在 Xcode 中创建一个全新的项目
- 删除并重新添加 Game Center 功能
- 使用不同的 Apple ID 登录 Game Center
- 使用不同的 Apple 开发者帐户并再次执行上述操作
我还有另外两款游戏,一切正常。在很多关于这个问题的旧帖子中,没有人得到任何答案或解决方案,所以我认为苹果的后端系统有问题。
如果有人有任何有关如何解决问题的信息,请提供帮助。
最佳答案
联系 Apple 开发者支持后,问题已上报给 Apple 工程团队。
同时,我在互联网上发现了其他几个案例,所有这些案例都是通过等待 5-7 天,然后删除或添加游戏中心成就或排行榜来“解决”的,然后突然间,事情神奇地发挥了作用。
所以我又试了一次,现在可以了。
关于ios - GKLocalPlayer localPlayer无法验证: "this application is not recognised by Game Center" error GKServerStatusCode 5019,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70799795/