ASIHTTPRequest setDownloadDestinationPath崩溃

ASIHTTPRequest setDownloadDestinationPath崩溃,asihttprequest,Asihttprequest,我有一个简单的代码: NSURL *urltmp = downloadContentURL; NSURL *url = [urltmp URLByAppendingPathComponent:file]; NSLog(@"url is: %@", url); ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request setDownloadDestinationPath:[self applicationSupp

我有一个简单的代码:

NSURL *urltmp = downloadContentURL;
NSURL *url = [urltmp URLByAppendingPathComponent:file];
NSLog(@"url is: %@", url);
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request setDownloadDestinationPath:[self applicationSupportDirectoryWithFilename:file]];

[request setDidFinishSelector:@selector(requestFinished:)];
[request setDelegate:self];
[request setDidFailSelector:@selector(requestFailed:)];
[request setShowAccurateProgress:YES];
[request setDownloadProgressDelegate:self];

[request startAsynchronous];
我使用setDownloadDestinationPath将文件直接写入磁盘,而不是写入内存。该文件为80MB,因此在内存中下载时会在设备上崩溃

代码在模拟器中工作正常,但在设备上发生崩溃:

线程2:程序接收信号:EXC_BAD_指令。 [((ASIHTTPRequest*)clientCallBackInfo)handleNetworkEvent:type]

请协助

问候,,
比尔

通过将最小生成设置从4.0交换到4.1来解决。 也许4.0中缺少了一些东西

谢谢