Questions tagged «xcode6-beta5»

30
Error Domain = NSURLErrorDomain代码= -1005“网络连接丢失。”
我有一个可以在Xcode6-Beta1和Xcode6-Beta2以及iOS7和iOS8上正常运行的应用程序。但是使用Xcode6-Beta3,Beta4,Beta5,我遇到了iOS8的网络问题,但是在iOS7上一切正常。我得到了错误"The network connection was lost."。错误如下: 错误:错误域= NSURLErrorDomain代码= -1005“网络连接丢失。” UserInfo = 0x7ba8e5b0 {NSErrorFailingURLStringKey =,_kCFStreamErrorCodeKey = 57,NSErrorFailingURLKey =,NSLocalizedDescription =网络连接丢失。,_kCFStreamErrorDomainKey = 1,NSUnderlyingError = 0x7a6957e0“网络连接丢失。”} 我使用AFNetworking 2.x和以下代码片段进行网络调用: AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; [manager setSecurityPolicy:policy]; manager.requestSerializer = [AFHTTPRequestSerializer serializer]; manager.responseSerializer = [AFHTTPResponseSerializer serializer]; [manager POST:<example-url> parameters:<parameteres> success:^(AFHTTPRequestOperation *operation, id responseObject) { NSLog(@“Success: %@", responseObject); } …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.