对象请求失败:基础 HTTP 请求操作失败,出现错误:错误域=NSURLErrorDomain Code=-1012"



我正在使用restkit,并试图从我的模拟器访问https网站。iPad模拟器在发送请求时使用系统代理,我想代理阻止了这些请求。当我在iPad设备上运行时,同样的代码也能正常工作。任何人都请帮帮我。我得到的错误是

I restkit.network:RKObjectRequestOperation.m:174 POST 'https://myurl.net/api/auth/entry'
2013-07-19 18:06:43.515 Dashboard[19149:4703] E    restkit.network:RKObjectRequestOperation.m:570 Object request failed: Underlying HTTP request operation failed with error: Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x85806d0 

想要在构建中声明下一行设置预处理宏不使用。。。。。。。选项_AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_

最新更新