错误域=org.restkit.RestKit.ErrorDomain 代码=-1011 "Expected status code in (200), got 504" - 仅在真实设备中

Error Domain=org.restkit.RestKit.ErrorDomain Code=-1011 "Expected status code in (200), got 504" - Only in real Device

RKObjectManager *manager = [RKObjectManager managerWithBaseURL:[NSURL URLWithString:BASE_URL]];

PPPSynchronization *synchObj = [[PPPSynchronization alloc] init];
[synchObj configureRestKitWithManager:manager withSyncType:CUSTOMER_POST_DATA];

class_customer_list_request *requestObj;
NSMutableURLRequest *request = [manager requestWithObject:requestObj method:RKRequestMethodPOST path:PPP_ESM_POST_COMPONENT parameters:postDict];

[request setTimeoutInterval:300];

RKObjectRequestOperation *op = [manager objectRequestOperationWithRequest:request success:^(RKObjectRequestOperation *operation, RKMappingResult *mappingResult) {
...

}failure:^(RKObjectRequestOperation *operation, NSError *error) {

}];
[manager enqueueObjectRequestOperation:op];

我的代码在 iOS Simulator 中完美运行,当我 运行 在真实设备上时它不是 working.It 等待 5 分钟在模拟器中获得响应,但在设备中它死了1分钟。请给我一个解决方案。

能否同时检查设备和计算机的互联网连接。