0
我正在寻找一种压缩和解压缩带有arm64支持的ios文件的方法。我在Github上看,但他们中没有一个支持arm64。是否已有一个用于压缩和解压缩文件的现成即用库? (我爱你,如果你知道一种方法如何整合7zip的,bzip2的,gzip的,RAR)如何压缩,解压缩目标C中的文件(arm64支持)
我使用SSZipArchive现在,但它不工作:
#import "SSZipArchive.h"
NSArray *nameWithoutExtention = [[[[self files] objectAtIndex:indexPath.row] lastPathComponent] componentsSeparatedByString:@"."];
NSString *fileName = [nameWithoutExtention objectAtIndex:0];
NSString *destPath = [NSString stringWithFormat:@"%@/%@", self.directory, fileName];
[fileManager createDirectoryAtPath:destPath withIntermediateDirectories:YES attributes:nil error:nil];
[SSZipArchive unzipFileAtPath:[[self files] objectAtIndex:indexPath.row] toDestination:destPath];
为什么很重要?如果他们是开源的,你可以自己编译64位。 – coneybeare
但是,当我添加https://github.com/dive/ALZipArchive我得到了很多错误消息,我不能修复,所以我认为已经必须有一个固定的项目/库 –
我使用GTMNSData + zlib。它是为我所要求的所有内容编译的。 – Putz1103