ios – xcode控制台中的GKSConnSettings消息

前端之家收集整理的这篇文章主要介绍了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

原文链接:https://www.f2er.com/iOS/333865.html

猜你在找的iOS相关文章