Error message : [MC] Reading from public effective user settings & [MC] System group container for systemgroup.com.apple.configurationprofiles path is

时间秒杀一切 提交于 2019-12-05 21:49:55

问题


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
            }
}];

Error messages :

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.

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]; 

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 ?

Thank you in advance.


回答1:


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

  • From Xcode menu open: Product > Scheme > Edit Scheme
  • On your Environment Variables set OS_ACTIVITY_MODE in the value set disable

I solved it thanks to this discussion.



来源:https://stackoverflow.com/questions/42476012/error-message-mc-reading-from-public-effective-user-settings-mc-system-g

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!