ios – xcode控制台中的GKSConnSettings消息

我的应用程序突然收到此消息 –
<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";
     }

它来自哪里?

解决方法

在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

相关文章

当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...