Ios xcode控制台中的GKSCONNTSETTINGS消息
在我的应用程序中突然收到此消息-Ios xcode控制台中的GKSCONNTSETTINGS消息,ios,xcode,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:163
<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";
}
:22:20:44.800330 com.apple.AVConference:GKSConnSettings:set服务器:{
“gk cdx”=“17.173.254.218:4398”;
“gk commnat队列”=“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我的响应有点慢。我道歉。看起来这和游戏中心有关。驳回之前的评论。我正在使用XCode 4.5。您正在尝试通过沙箱访问游戏中心吗?如果是,请尝试以下方法: