Tag: ssziparchive

架构armv7的未定义符号:“_OBJC_CLASS _ $ _ SSZipArchive”

我尝试在这里使用Extractzipfile插件: https : //github.com/phonegap/phonegap-plugins/tree/master/iOS/ExtractZipFile 但是,当我编译与SDK 6.1中的Xcode 4.6.1,所以它会引发错误: Undefined symbols for architecture i386: "_OBJC_CLASS_$_SSZipArchive", referenced from: objc-class-ref in ExtractZipFilePlugin.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) 我试着在这里做这个问题: 架构armv7 SSZipArchive的未定义符号 但它显示了另一个错误: /Users/alienware/Desktop/ExtractZipFile/SSZipArchive/Tests/SSZipArchiveTests.m:10:9:找不到“SenTestingKit / SenTestingKit.h”文件 我使用phonegap工作,我在iOS上制作应用程序,我是转储。 更新 :我尝试将SSZipArchive.m添加到编译器源代码中,并发生新的错误: Undefined symbols for architecture i386: "_unzClose", […]

未能findzlib生成b / c符号失败

添加库解压缩到我的iPhone应用程序有一个问题。 我决定使用SSZipArchive 。 它使用minizip。 遵循以下指示: 1添加SSZipArchive.h,SSZipArchive.m和minizip 2将libz库添加到您的目标 我仍然得到错误: 未find符号。 我尝试添加-lz到其他链接器标志并添加lybz.dylib,但它没有帮助。 如果你知道如何让libz在这里工作,请让我知道。 解决:而不是使用文件夹,我做了一个黄色的参考组,删除/ minizip /从包括现在一切正常。

你如何包含IOS 5的SSZipArchive?

对于我正在进行的项目,我需要解压缩某些文件。 为此,我find了SSZipArchive库。 我将其包含在Xcode 4.2中(右键单击Classes文件夹 – >将文件添加到项目,并在对话框中将“将项目复制到目标组的文件夹” – 选中checkbox)。 我包括libz库(我已经尝试了libz和zlib1.2.5)。 我试图编译,突然间我有20个错误: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:311:1: error: expected identifier or '(' [1] @class NSString, Protocol; ^ /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:313:19: error: unknown type name 'NSString' [1] FOUNDATION_EXPORT NSString *NSStringFromSelector(SEL aSelector); ^ /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:314:44: error: unknown type name 'NSString' [1] FOUNDATION_EXPORT SEL NSSelectorFromString(NSString *aSelectorName); ^ /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:316:19: error: unknown type name 'NSString' [1] FOUNDATION_EXPORT NSString *NSStringFromClass(Class […]

在swift中解压缩文件

如何去迅速解压缩文件? 在Objective-C中,我使用了SSZipArchive,我喜欢它。 如下面的代码所示。 我怀疑,如果我决定保持SSZipArchive, 我将不得不桥接一个Objective-C文件到我的Swift文件。 有没有更新的第三方,或更好的Apple文档在Swift中解压文件? NSString *zipPath = [self.globalFileStrucure stringByAppendingPathComponent:@"zipfile.zip"]; [data writeToFile:zipPath options:0 error:&error]; BOOL unZipped = 0; unZipped = [SSZipArchive unzipFileAtPath:zipPath toDestination:self.globalFileStrucure];