gpt4 book ai didi

ios - 架构 armv7 的 undefined symbol : "_OBJC_CLASS_$_SSZipArchive"

转载 作者:行者123 更新时间:2023-11-28 18:37:44 31 4
gpt4 key购买 nike

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

我试着在这里做这个问题:Undefined symbols for architecture armv7 SSZipArchive

但是它显示另一个错误:

/Users/alienware/Desktop/ExtractZipFile/SSZipArchive/Tests/SSZipArchiveTests.m:10:9: 'SenTestingKit/SenTestingKit.h' file not found

我在 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)

最佳答案

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

关于ios - 架构 armv7 的 undefined symbol : "_OBJC_CLASS_$_SSZipArchive",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15897702/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com