我在 Xcode 6.1 中制作了我的应用程序,并且在 iOS 9 的调试区域中没有警告。现在我升级到 Xcode 7.0.1,并且在 iOS 9 的调试区域中收到了 GameCenter 警告:
14 13:39:20.607 MachineMan[265:13165] 插件 com.apple.GameCenterUI.GameCenterAuthenticateExtension 无效
2015-10-14 13:39:25.027 MachineMan[265:13058] 不允许在取消分配时尝试加载 View Controller 的 View ,这可能会导致未定义的行为 () 插件 com.apple.GameCenterUI.GameCenterDashboardExtension 无效
这是关于 Game Center 的说法是什么?当我登录和注销时,它似乎工作正常。排行榜工作正常,为什么我会在调试区域收到此消息?
最佳答案
当我尝试显示 GameCenter 成就 UIViewController 时,我在控制台中收到此日志:GKGameCenterViewController 而玩家未在游戏中心。出现了一个 UIAlertController :
Game Center Unavailable
Player is not signed in
OK
结果是 UI 卡住了。
检查播放器状态可以防止这个问题。
PS:我正在 iPhone 6s iOS 9.0.2 和 xCode 7.0 上进行测试。
关于ios - Xcode 7.0.1 for iOS 9 for Game Center 中的调试区域警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33159855/