我在我的项目中使用了ASIHTTPRequest
,但是在文件ASIDataCompressor.m
的第190
行:
if ([inputStream streamStatus] == NSStreamEventErrorOccurred) {
if (err) {
*err = [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Compression of %@ failed because we were unable to write to the destination data file at %@",sourcePath,destinationPath],NSLocalizedDescriptionKey,[outputStream streamError],NSUnderlyingErrorKey,nil]];
}
[compressor closeStream];
return NO;
}
我的电脑提示我这个信息:
有人知道如何修复吗?谢谢。
NSStreamEventErrorOccurred
替换为NSStreamStatusError
。(更改ASIDataCompressor.m:164
ASIDataCompressor.m:190
) - nielsbot