在Xcode控制台中的GKSConnSettings消息

8

我的应用程序突然收到了以下信息 -

   <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个回答

2
在iOS 6.0+中,只要您的本地玩家已经通过身份验证,即被设置,此日志将立即显示。
[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


0

我的第一反应告诉我这可能与你的环境有关。你是否碰巧是在虚拟机中工作?这就是我的情况。


我对回应有点慢,请原谅。看起来这与游戏中心有关。忽略之前的评论。我正在使用XCode 4.5进行工作。您是否正在尝试通过沙盒访问游戏中心?如果是,请尝试以下链接:https://devforums.apple.com/thread/168811?tstart=0 - Coach Roebuck

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接