架构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", referenced from: +[SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o "_unzCloseCurrentFile", referenced from: +[SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o "_unzGetCurrentFileInfo", referenced from: +[SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o "_unzGetGlobalInfo", referenced from: +[SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o "_unzGoToFirstFile", referenced from: +[SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o "_unzGoToNextFile", referenced from: +[SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o "_unzOpen", referenced from: +[SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o "_unzOpenCurrentFile", referenced from: +[SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o "_unzOpenCurrentFilePassword", referenced from: +[SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o "_unzReadCurrentFile", referenced from: +[SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o "_zipClose", referenced from: -[SSZipArchive close] in SSZipArchive.o "_zipCloseFileInZip", referenced from: -[SSZipArchive writeFile:] in SSZipArchive.o -[SSZipArchive writeData:filename:] in SSZipArchive.o "_zipOpen", referenced from: -[SSZipArchive open] in SSZipArchive.o "_zipOpenNewFileInZip", referenced from: -[SSZipArchive writeFile:] in SSZipArchive.o -[SSZipArchive writeData:filename:] in SSZipArchive.o "_zipWriteInFileInZip", referenced from: -[SSZipArchive writeFile:] in SSZipArchive.o -[SSZipArchive writeData:filename:] in SSZipArchive.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) 

转到项目设置>转到构build阶段选项卡,然后编译源,并确保您将类拖到列表中。

我有同样的确切问题,这是你必须做的。 在你的项目中,创build一个名为SSZipArchive的组(文件夹),并将其中的2个主类文件拖放到其中。 然后在SSZipArchive中,创build一个名为minizip的子文件夹,然后将文件以minizip拖放到此文件夹中。 基本上,源代码中的文件夹需要手动创build…

嗨,据我所知,这个错误将由于以下任何原因而发生

1.如果您忘记了在VC类中导入任何库。 2.在项目中添加需要的库。 3.要正确设置标题search(意味着你添加了Extractzipfile插件的权利,所以显然你必须在项目中得到这个库的path,并且必须在标题searchpath中设置)

所以请检查这些东西。 祝一切顺利。