需要有关基本 Objective-C 构建错误的帮助



我在objective-c上完全没有经验,现在才开始。和我合作的一个开发者不得不出国几天,错误地在代码中留下了一个错误,现在我无法编译一个 iPhone 应用程序来完成它......

我通过邮件从他那里得到了一些信息,他告诉我他留下了一个叫做对话框的库,我需要删除它才能让它工作......

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

我尝试运行该项目,但收到此错误:

建立目标莫尔马

低密度 /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/Content/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Content/Developer/usr/bin:/usr/bin:/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Content/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot/Applications/Xcode.app/Content/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/yanivshimony/library/developer/Xcode/DerivedData/mormar-cxfykryhzfovlbgtsjfowgleiyxu/Build/Products/Debug-iphonesimulator -f/users/yanivshimony/library/developer/Xcode/DerivedData/mormar-cxfykryhzfovlbgtsjfowgleiyxu/Build/Products/Debug-iphonesimulator -filelist/Users/yanivshimony/Library/Developer/Xcode/DerivedData/mormar-cxfykryhzfovlbgtsjfowgleiyxu/Build/Intermediates/mormar.build/Debug-iphonesimulator/mormar.build/Objects-normal/i386/mormar.链接文件列表 -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",引用自: objc-class-ref in LoadView.o "_kCATransitionFade",引用自: +[LoadView LoadViewInView:] in LoadView.o -[加载视图删除视图] 在 加载视图.o ld:找不到体系结构的符号 i386 叮当声:错误:链接器命令失败,并显示 退出代码 1(使用 -v 查看调用)

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

您需要链接到QuartzCore。

在 Xcode 边栏中点按您的项目名称。然后单击目标,并在"摘要"选项卡中找到链接框架和库的列表。单击此列表下方的加号按钮,然后添加石英核心。

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

最新更新