ios – xcode控制台中的GKSConnSettings消息

前端之家收集整理的这篇文章主要介绍了ios – xcode控制台中的GKSConnSettings消息前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我的应用程序突然收到此消息 –
  1. <Info>: 22:20:44.800330 com.apple.AVConference: GKSConnSettings: set server: {
  2.  
  3. "gk-cdx" = "17.173.254.218:4398";
  4. "gk-commnat-cohort" = "17.173.254.220:16386";
  5. "gk-commnat-main0" = "17.173.254.219:16384";
  6. "gk-commnat-main1" = "17.173.254.219:16385";
  7. }

它来自哪里?

解决方法

在iOS 6.0中,只要localPlayer经过身份验证(即设置),此日志就会显示出来
  1. [GKLocalPlayer localPlayer].authenticateHandler = ^(UIViewController *viewController,NSError *error) {
  2. if (viewController != NULL) {
  3. // present the viewController now
  4. } else if ([GKLocalPlayer localPlayer].isAuthenticated) {
  5. NSLog(@"Already authenticated");
  6. } else {
  7. NSLog(@"Not authenticated,disable GameCenter");
  8. }
  9. };

并在必要时显示viewController以登录GameCenter

猜你在找的iOS相关文章