I am trying to distribute my ad hoc app to testers through TestFlight and the ASIHTTPRequest library is included in my app. The app will request the server and get the JSON String from it when launch. However it didn't call either success or fail block.
I have read articles on Github and SO such that I knew there is a issue between TestFlight and ASIHTTPRequest.
After removing the TestFlight SDK, the problems still exist if distributed by TestFlight's platform but not building directly from Xcode.
Is there any way for me to distribute my app with TestFlight?
My Code for connection:
-(void)connectServerWithURL:(NSURL*)url
{
__weak ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request setCompletionBlock:^{
if ([self.delegate respondsToSelector:@selector(downloadDataSuccessWithWithRequest:url:)])
{
[self.delegate downloadDataSuccessWithWithRequest:request url:url];
}
}];
[request setFailedBlock:^{
if ([self.delegate respondsToSelector:@selector(downloadDataFailureWithRequest:url:)])
{
[self.delegate downloadDataFailureWithRequest:request url:url];
}
}];
[request startAsynchronous];
}