简体   繁体   English

找不到架构i386错误iOS的符号

[英]Symbol(s) not found for architecture i386 error iOS

There are no errors in my code itself but when i try to run, I get this error - Symbol(s) not found for architecture i386 error iOS. 我的代码本身没有错误,但是当我尝试运行时,我收到此错误 - 找不到架构i386错误iOS的符号。 I looked for answers but nothing so far has helped me. 我寻找答案但到目前为止没有任何帮助我。 I am sure I am linking to the correct libraries. 我确信我正在链接到正确的库。

Furthermore, The code does work when it's run in a different project by itself. 此外,代码本身在不同的项目中运行时确实有效。 Essentially, I made the pieces of an app and have run into this problem when getting them to all work together. 从本质上讲,我制作了应用程序的各个部分,并在将它们集中到一起工作时遇到了这个问题。 Everything is identical between the two apps. 两个应用程序之间的一切都是相同的。 The only real difference is that I am running it along with a coreplot code so i'm not sure if that has anything to do with it? 唯一真正的区别是我和核心代码一起运行它,所以我不确定它是否与它有任何关系?

The error is occurring because of a TFHipple element. 由于TFHipple元素而发生错误。 Here is a copy of the error : 这是错误的副本:

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)

I'm pretty sure I have all the frameworks I need 我很确定我拥有我需要的所有框架

Check your build settings. 检查您的构建设置。 If everything is correct, try a clean build of the whole project. 如果一切正确,请尝试整个项目的清洁构建。 Xcode is trying to link a simulator build of your app with an iOS device build of Core Plot. Xcode正试图将您的应用程序的模拟器版本与Core Plot的iOS设备版本链接起来。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM