Objective-Zip iPhone IOS 5问题 [英] Objective-Zip iPhone IOS 5 issue

查看:85
本文介绍了Objective-Zip iPhone IOS 5问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在IOS5 iPhone应用程序上使用Objective-Zip,并且在构建项目时出现以下链接错误:

I'm trying to use Objective-Zip on an IOS5 iPhone application and I get the following linkage error when I build my project:

----- ------ * ** * ** * **** ----- ----------

----------- ***********---------------

Ld / Users / amirpeivandi / Library / Developer / Xcode / DerivedData / Zarvaragh-czcfescrnmgrljfojncagweywohi / Build / Products / Debug-iphonesimulator /Zarvaragh.app/Zarvaragh正常i386
cd / Users / amirpeivandi / Documents / iPhoenApps / Zarvaragh
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/ bin:/ Developer / usr / bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L / Users / amirpeivandi / Library / Developer / Xcode / DerivedData / Zarvaragh-czcfescrnmgrljfojncagweywohi / Build / Products / Debug-iphonesimulator -F / Users / amirpeiv andi / Library / Developer / Xcode / DerivedData / Zarvaragh-czcfescrnmgrljfojncagweywohi / Build / Products / Debug-iphonesimulator -filelist /Users/amirpeivandi/Library/Developer/Xcode/DerivedData/Zarvaragh-czcfescrnmgrljfojncagweywohi/Build/Intermediates/Zarvaragh.build/Debug- iphonesimulator / Zarvaragh.build / Objects-normal / i386 / Zarvaragh.LinkFileList -mmacosx-version-min = 10.6 -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED = 40300 -lz -framework CoreGraphics -framework MobileCoreServices -framework SystemConfiguration-框架CFNetwork -framework UIKit -framework Foundation -o /Users/amirpeivandi/Library/Developer/Xcode/DerivedData/Zarvaragh-czcfescrnmgrljfojncagweywohi/Build/Products/Debug-iphonesimulator/Zarvaragh.app/Zarvaragh

Ld /Users/amirpeivandi/Library/Developer/Xcode/DerivedData/Zarvaragh-czcfescrnmgrljfojncagweywohi/Build/Products/Debug-iphonesimulator/Zarvaragh.app/Zarvaragh normal i386 cd /Users/amirpeivandi/Documents/iPhoenApps/Zarvaragh setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/amirpeivandi/Library/Developer/Xcode/DerivedData/Zarvaragh-czcfescrnmgrljfojncagweywohi/Build/Products/Debug-iphonesimulator -F/Users/amirpeivandi/Library/Developer/Xcode/DerivedData/Zarvaragh-czcfescrnmgrljfojncagweywohi/Build/Products/Debug-iphonesimulator -filelist /Users/amirpeivandi/Library/Developer/Xcode/DerivedData/Zarvaragh-czcfescrnmgrljfojncagweywohi/Build/Intermediates/Zarvaragh.build/Debug-iphonesimulator/Zarvaragh.build/Objects-normal/i386/Zarvaragh.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -lz -framework CoreGraphics -framework MobileCoreServices -framework SystemConfiguration -framework CFNetwork -framework UIKit -framework Foundation -o /Users/amirpeivandi/Library/Developer/Xcode/DerivedData/Zarvaragh-czcfescrnmgrljfojncagweywohi/Build/Products/Debug-iphonesimulator/Zarvaragh.app/Zarvaragh

架构i386的未定义符号:
_ OBJC_CLASS _ $ _ ZipFile,引用自:
MainPageController.o中的objc-class-ref
ld:未找到符号建筑i386
clang :错误:链接器命令失败,退出代码为1(使用-v查看调用)

Undefined symbols for architecture i386: "_OBJC_CLASS_$_ZipFile", referenced from: objc-class-ref in MainPageController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

----------- * ** * ** * **** ---------------

----------- ***********---------------

我运行代码附带的Objective-Zip应用程序没有问题,我检查了我的代码,我的项目设置以及我能想到的所有这两个项目(我的和默认的Objective-Zip iPhone项目)具有相同的相同设置!

I have no problem running the Objective-Zip application that comes with the code and I have checked my code, my project settings and all I could think of and the two projects (mine and default Objective-Zip iPhone project) have the same identical settings!

任何指针都将非常感激。在这个愚蠢的事情上,我被困在最后几天。我已经看过一些指向架构支持和ARC设置的帖子,但我又有两个项目,我看到它们是相同的一个我没有编译的,一个来自Objective-Zip项目编译并运行得很好!

Any pointer would be greatly appreciated. I've been stuck for last couple of days on this silly thing. I've seen a few posts pointing to architecture supports and ARC setting but again I have two projects the way I see them identical one mine that is not compiling and one the one from Objective-Zip project that compiles and runs just fine!

Thx
Amir

Thx Amir

推荐答案

您确定已链接你项目中的Objective-Zip库?因为错误似乎没有链接。

Are you sure you have linked the Objective-Zip library in your project ? Because from the error it seems like it's not linked.

这篇关于Objective-Zip iPhone IOS 5问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆