我有一个应用程序在iOS7和iOS8上都可以在Xcode6-Beta1和Xcode6-Beta2上正常工作。 但与Xcode6-Beta3,Beta4,Beta5我正面临与iOS8的networking问题,但一切工作正常iOS7。 我收到错误"The network connection was lost." 。 错误如下: 错误:错误域= NSURLErrorDomain代码= -1005“networking连接丢失。 UserInfo = 0x7ba8e5b0 {NSErrorFailingURLStringKey =,_kCFStreamErrorCodeKey = 57,NSErrorFailingURLKey =,NSLocalizedDescription =networking连接丢失,_kCFStreamErrorDomainKey = 1,NSUnderlyingError = 0x7a6957e0“networking连接丢失。 我使用AFNetworking 2.x和下面的代码片段来进行networking调用: 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); } failure:^(AFHTTPRequestOperation […]