【问题标题】:Symbol(s) not found for architecture i386 error iOS未找到体系结构 i386 错误 iOS 的符号
【发布时间】:2013-03-10 16:31:36
【问题描述】:

我的代码本身没有错误,但是当我尝试运行时,我收到此错误 - 未找到体系结构 i386 错误 iOS 的符号。我寻找答案,但到目前为止没有任何帮助。我确定我正在链接到正确的库。

此外,当代码单独在不同的项目中运行时,它确实可以工作。从本质上讲,我制作了一个应用程序的各个部分,并且在让它们一起工作时遇到了这个问题。这两个应用程序之间的一切都是相同的。唯一真正的区别是我将它与 coreplot 代码一起运行,所以我不确定这是否与它有关?

由于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)

我很确定我拥有我需要的所有框架

【问题讨论】:

  • 完整的错误信息是什么 - 没有找到哪个符号?
  • 可能你缺少一些框架。同意托利。发布错误。
  • 我添加了错误信息。我确信我拥有所有框架,因为该程序在较小的应用程序中运行良好。
  • 可能在这里覆盖?:stackoverflow.com/questions/6984368/…
  • @Robert...谢谢!这对我有用!

标签: ios objective-c core-plot


【解决方案1】:

检查您的构建设置。如果一切正确,请尝试对整个项目进行干净的构建。 Xcode 正在尝试将您的应用程序的模拟器构建与 Core Plot 的 iOS 设备构建链接。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2011-06-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-07-18
  • 1970-01-01
相关资源
最近更新 更多