需要基本Objective-c构建错误的帮助

时间:2012-05-30 13:13:50

标签: objective-c ios

我在目标c上根本没有经验,现在才开始。 我工作的开发人员不得不出国几天,错误地在代码中留下错误,现在我无法编译Iphone应用程序来完成它...

我通过邮件从他那里得到了一些信息,他告诉我他离开了一个叫做对话的图书馆,我需要把它删除才能使它工作......

问题是我没有Objective-c和Xcode的经验......我是网络开发人员:)

我试图运行该项目,并收到此错误:

  

建立目标形象

     

Ld的   /Users/yanivshimony/Library/Developer/Xcode/DerivedData/mormar-cxfykryhzfovlbgtsjfowgleiyxu/Build/Products/Debug-iphonesimulator/mormar.app/mormar   正常的i386       cd / Users / yanivshimony / Desktop / mormar       setenv MACOSX_DEPLOYMENT_TARGET 10.6       setenv PATH“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/ usr / sbin目录:/ sbin目录”       /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang   -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk   -L /用户/ yanivshimony /库/开发商/ Xcode中/ DerivedData / mormar-cxfykryhzfovlbgtsjfowgleiyxu /编译/产品/调试,iphonesimulator   -F /用户/ yanivshimony /库/开发商/ Xcode中/ DerivedData / mormar-cxfykryhzfovlbgtsjfowgleiyxu /编译/产品/调试,iphonesimulator   -filelist /Users/yanivshimony/Library/Developer/Xcode/DerivedData/mormar-cxfykryhzfovlbgtsjfowgleiyxu/Build/Intermediates/mormar.build/Debug-iphonesimulator/mormar.build/Objects-normal/i386/mormar.LinkFileList   -mmacosx-version-min = 10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED = 40300 -framework UIKit -framework Foundation -framework CoreGraphics -o   /Users/yanivshimony/Library/Developer/Xcode/DerivedData/mormar-cxfykryhzfovlbgtsjfowgleiyxu/Build/Products/Debug-iphonesimulator/mormar.app/mormar

     

架构i386的未定义符号:
  “_OBJC_CLASS _ $ _ CATransition”,引自:         LoadingView.o“_kCATransitionFade”中的objc-class-ref,引自:         在LoadingView.o中加载[LoadingView loadingViewInView:]          - LoadingView.o中的[LoadingView removeView] ld:找不到架构i386 clang的符号:错误:链接器命令失败   退出代码1(使用-v查看调用)

谷歌搜索了一段时间之后,我仍然不知道如何解决这个问题...... 我非常感谢任何帮助, 谢谢!

2 个答案:

答案 0 :(得分:3)

您需要链接QuartzCore。

单击Xco​​de侧栏中的项目名称。然后单击目标,在Summary选项卡中找到链接框架和库的列表。单击此列表下方的加号按钮,然后添加QuartzCore。

答案 1 :(得分:2)

您需要QuartzCore框架。将其添加到您的项目中(通过项目设置的“链接二进制”构建阶段)。将#import <QuartzCore/QuartzCore.h>添加到项目的前缀标头(通常为Prefix.pch{ProjectName}-Prefix.pch)。这应该可以在不删除此库的情况下解决问题。

相关问题