错误消息:[MC]从公共有效用户设置读取& [MC] systemgroup.com.apple.configurationprofiles路径的系统组容器是 [英] Error message : [MC] Reading from public effective user settings & [MC] System group container for systemgroup.com.apple.configurationprofiles path is

查看:1909
本文介绍了错误消息:[MC]从公共有效用户设置读取& [MC] systemgroup.com.apple.configurationprofiles路径的系统组容器是的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用以下代码时,我有错误消息:

When I use the following code, I have error messages :

[NSURLConnection sendAsynchronousRequest:request queue:myQueue completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
        NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
        NSLog(@"response status code: %ld, error status : %@", (long)[httpResponse statusCode], error.description);

        if ((long)[httpResponse statusCode] >= 200 && (long)[httpResponse statusCode]< 400)
            {
               // do stuff
                [self requestFunction]; //Web Service
            }
}];

错误消息:

2017-02-27 01:13:30.088641 RENAULT[210:12313] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2017-02-27 01:13:30.090449 RENAULT[210:12313] [MC] Reading from public effective user settings.

[self requestFunction]函数启动一个简单的请求:

The [self requestFunction] function launch a simple request :

        NSMutableURLRequest* request = [[NSMutableURLRequest alloc] init];
        NSString *url_string = [bytes stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
        [request setURL:[NSURL URLWithString:[set_send_order stringByAppendingString: url_string]]];
        [request setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData];
        [request setTimeoutInterval:timeOut];
        [NSURLConnection connectionWithRequest:request delegate:self]; 

我确切地说没有调用connectionDidFinishLoading:但是如果我在没有sendAsynchronousRequest的情况下直接启动它,有用。
那么为什么我使用sendAsynchronousRequest:函数会让我出现两个错误消息,并且错误地调用了connectionDidFinishLoading?

I precise that the connectionDidFinishLoading: is not called, but if I launch it directly without the sendAsynchronousRequest:, it works. So why the fact that I use sendAsynchronousRequest: function makes me appear the two error messages, and the miscalling of the connectionDidFinishLoading ?

提前谢谢。

推荐答案

这件事发生在我身上。我使用textField时在控制台中记录相同的日志。以下是我的操作:

It occurs to me. The same logs in console when I use textField. Follow is my operation:


  • 从Xcode菜单打开:产品>方案>编辑方案

  • 开你的环境变量在值集中设置OS_ACTIVITY_MODE禁用

由于这个讨论。

这篇关于错误消息:[MC]从公共有效用户设置读取&amp; [MC] systemgroup.com.apple.configurationprofiles路径的系统组容器是的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆