HTML5   发布时间:2022-04-27  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ios – 错误消息:[MC]从公共有效用户设置读取和[MC] systemgroup.com.apple.configurationprofiles路径的系统组容器是大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
当我使用以下代码时,我有错误消息:
[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] Sy@R_403_2407@ group container for sy@R_403_2407@group.com.apple.configurationprofiles path is /private/var/containers/Shared/Sy@R_403_2407@Group/sy@R_403_2407@group.com.apple.configurationprofiles
2017-02-27 01:13:30.090449 RENAULT[210:12313] [MC] Reading from public effective user setTings.

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

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?

先感谢您.

解决方法

它发生在我身上.我使用textField时在控制台中记录相同的日志.跟着是我的操作:

>从Xcode菜单打开:产品>方案>编辑方案
>在您的环境变量上,在值集disable中设置OS_ACTIVITY_MODE

由于this讨论,我解决了它.

大佬总结

以上是大佬教程为你收集整理的ios – 错误消息:[MC]从公共有效用户设置读取和[MC] systemgroup.com.apple.configurationprofiles路径的系统组容器是全部内容,希望文章能够帮你解决ios – 错误消息:[MC]从公共有效用户设置读取和[MC] systemgroup.com.apple.configurationprofiles路径的系统组容器是所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。