xcode控制台中的GKSConnSettings消息

时间:2012-09-19 19:24:49

标签: ios xcode

我的应用中突然收到此消息 -

   <Info>: 22:20:44.800330 com.apple.AVConference: GKSConnSettings: set server: {

        "gk-cdx" = "17.173.254.218:4398";
        "gk-commnat-cohort" = "17.173.254.220:16386";
        "gk-commnat-main0" = "17.173.254.219:16384";
        "gk-commnat-main1" = "17.173.254.219:16385";
     }

它来自哪里?

2 个答案:

答案 0 :(得分:2)

在iOS 6.0 +中,只要localPlayer经过身份验证即会显示此日志,即设置

[GKLocalPlayer localPlayer].authenticateHandler = ^(UIViewController *viewController, NSError *error) {
        if (viewController != NULL) {
            // present the viewController now
        } else if ([GKLocalPlayer localPlayer].isAuthenticated) {
            NSLog(@"Already authenticated");
        } else {
            NSLog(@"Not authenticated, disable GameCenter");
        }
    };

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

答案 1 :(得分:0)

我的第一直觉告诉我它可能与你的环境有关。您是偶然从虚拟机工作的吗?这恰好是我的理由。