代码如下:
NSData * retdata = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:&err];
if (err)
{
NSLog(@"与服务器通讯失败%@!", err);
return;
}
出错日志如下:
> Mar 24 23:52:01 ios8 securityd[217] : securityd_xpc_dictionary_handler test[3245] delete The operation couldn’t be completed. (OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements)
> Mar 24 23:52:01 ios8 test[3245] : SecOSStatusWith error:[-34018] The operation couldn’t be completed. (OSStatus error -34018 - Remote error : The operation couldn‚Äôt be completed. (OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements))
看起来像签名之类的问题,但其它功能都非常正常,为什么这个网络访问就不行了呢?
别说我的代码有啥问题,代码都是在xcode里面测试通过的, 而且都是真机调试.
大哥们帮我看看什么原因.