我正在尝试在此使用 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)