架构armv7的未定义符号:“_OBJC_CLASS _ $ _ SSZipArchive” [英] Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive"
问题描述
我尝试使用Extractzip文件插件: https:// github .com / phonegap / phonegap-plugins / tree / master / iOS / ExtractZipFile
但是当我编译器使用Xcode 4.6.1在sdk 6.1,所以它会抛出一个错误:
架构i386的未定义符号:
_OBJC_CLASS _ $ _ SSZipArchive,引用自:
objc-class-ref in ExtractZipFilePlugin。 o
ld:没有为架构i386找到符号
clang:error:linker命令失败,退出代码为1(使用-v查看调用)
我尝试在这里执行此操作:架构的未定义符号armv7 SSZipArchive
但它显示另一个错误:
/Users/alienware/Desktop/ExtractZipFile/SSZipArchive/Tests/SSZipArchiveTests.m:10:9:SenTestingKit / SenTestingKit.h文件未找到
任何人都告诉我如何解决它。我使用phonegap这是第一个我在iOS中的应用程序,我是转储。
请帮助我!
感谢阅读。
更新:
我尝试将SSZipArchive.m添加到编译器源代码中,并出现新的错误:架构i386的未定义符号:
_unzClose,引用自:
+ [SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive .o
_unzCloseCurrentFile,引用自:
+ [SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o
_unzGetCurrentFileInfo,引用自:
+ [SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o
_unzGetGlobalInfo,引用自:
+ [SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error: delegate:] in SSZipArchive.o
_unzGoToFirstFile,引用自:
+ [SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o
_unzGoToNextFile参考:
+ [SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o
_unzOpen,引用自:
+ [SSZipArchive unzipFileAtPath:toDestination:overwrite :password:error:delegate:] in SSZipArchive.o
_unzOpenCurrentFile,引用自:
+ [SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o
_unzOpenCurrentFilePassword,引用自:
+ [SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o
_unzReadCurrentFile,引用自:
+ [SSZipArchive unzipFileAtPath:toDestination:overwrite:password:error:delegate:] in SSZipArchive.o
_zipClose,引用自:
- SSZipArchive.o中的[SSZipArchive close]
_zipCloseFileInZip从:
- SSZipArchive.o中的[SSZipArchive writeFile:]
- SSZipArchive.o中的[SSZipArchive writeData:filename:]
_zipOpen,引用:
- [SSZipArchive打开] in SSZipArchive.o
_zipOpenNewFileInZip,引用自:
- [SSZipArchive writeFile:] in SSZipArchive.o
- [SSZipArchive writeData:filename:] in SSZipArchive.o
_zipWriteInFileInZip,引用自:
- SSZipArchive.o中的[SSZipArchive writeFile:]
- SSZipArchive.o中的[SSZipArchive writeData:filename:]
ld:未找到符号for architecture i386
clang:error:linker命令失败,退出代码1(使用-v查看调用)
解决方案转到项目设置>转到构建阶段选项卡,然后编译源,并确保你拖动类到列表中。
I am try using Extractzipfile plugin at this: https://github.com/phonegap/phonegap-plugins/tree/master/iOS/ExtractZipFile
But when i compiler with Xcode 4.6.1 in sdk 6.1 so it's throw an error:
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)
I try to do the issue at here: Undefined symbols for architecture armv7 SSZipArchive
But it's show another error:
/Users/alienware/Desktop/ExtractZipFile/SSZipArchive/Tests/SSZipArchiveTests.m:10:9: 'SenTestingKit/SenTestingKit.h' file not found
Anyone tell me how to fix it. I work with phonegap and this is the first i make app in iOS, i am dump.
Please help me!
Thanks for read.
Update: I try to add SSZipArchive.m into compiler source and this come to new Error:
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)
解决方案Go to the Project Settings>go to the Build Phases tab and then Compile Sources and make sure you drag the class to the list.
这篇关于架构armv7的未定义符号:“_OBJC_CLASS _ $ _ SSZipArchive”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!