2013-03-10 90 views
4

我的代码本身没有错误,但是当我尝试运行时,出现此错误 - 找不到架构i386错误iOS的符号。我寻找答案,但迄今没有帮助我。我确定我正在链接到正确的库。找不到架构i386错误的符号iOS

此外,当代码在不同的项目中运行时,该代码可以正常工作。从本质上讲,我制作了一个应用程序的各个部分,并且在让所有人一起工作时遇到了这个问题。这两个应用程序之间的一切都是相同唯一真正的区别是,我正在运行它与一个核心代码,所以我不知道这与它有什么关系?

错误发生是因为TFHipple元素。以下是错误的副本:

Ld /Users/jyurcho/Library/Developer/Xcode/DerivedData/PennStateStrengthandFitness-epmdweltrbdxujcyuhctckzwibzv/Build/Products/Debug-iphonesimulator/PennStateStrengthandFitness.app/PennStateStrengthandFitness normal i386 
cd /Users/jyurcho/Desktop/Testing/PennStateStrengthandFitness 
setenv IPHONEOS_DEPLOYMENT_TARGET 6.1 
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/iPhoneSimulator6.1.sdk -L/Users/jyurcho/Library/Developer/Xcode/DerivedData/PennStateStrengthandFitness-epmdweltrbdxujcyuhctckzwibzv/Build/Products/Debug-iphonesimulator -L/Users/jyurcho/Desktop/Testing/PennStateStrengthandFitness -F/Users/jyurcho/Library/Developer/Xcode/DerivedData/PennStateStrengthandFitness-epmdweltrbdxujcyuhctckzwibzv/Build/Products/Debug-iphonesimulator -filelist /Users/jyurcho/Library/Developer/Xcode/DerivedData/PennStateStrengthandFitness-epmdweltrbdxujcyuhctckzwibzv/Build/Intermediates/PennStateStrengthandFitness.build/Debug-iphonesimulator/PennStateStrengthandFitness.build/Objects-normal/i386/PennStateStrengthandFitness.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -lxml2 -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -lCorePlot-CocoaTouch -o /Users/jyurcho/Library/Developer/Xcode/DerivedData/PennStateStrengthandFitness-epmdweltrbdxujcyuhctckzwibzv/Build/Products/Debug-iphonesimulator/PennStateStrengthandFitness.app/PennStateStrengthandFitness 

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

我敢肯定,我有我需要

+1

什么是完整的错误消息 - 哪个符号没有找到? – 2013-03-10 16:42:00

+0

可能你错过了一些框架。同意Tolley。发布错误。 – 2013-03-10 17:06:00

+0

我添加了错误信息。我相信我拥有所有的框架,因为程序在较小的应用程序中运行良好。 – pj409 2013-03-10 17:46:29

回答

1

检查您的构建设置的所有框架。如果一切正确,请尝试整个项目的清洁版本。 Xcode试图将应用程序的模拟器构建与Core Plot的iOS设备构建相链接。

+1

谢谢,但我找到了答案...惠特为我工作http://stackoverflow.com/questions/6984368/undefined-symbols-for-architecture-i386-objc-class-skpsmtpmessage-refere – pj409 2013-03-10 20:45:57