iphone - 为什么我在使用 Core Plot 构建 iPhone 应用程序时会看到以下链接器错误?

标签 iphone ios xcode cocoa-touch core-plot

在构建使用 Core Plot 框架的 iPhone 应用程序时,我看到以下链接器错误:

ld: warning: ignoring file /Users/taxtmart5/Library/Developer/Xcode/DerivedData/Solagen_Calculator-cwvwcdlnuukfftakggygqoczxyuy/Build/Products/Debug-iphoneos/libCorePlot-CocoaTouch.a, file was built for archive which is not the architecture being linked (armv6)
Undefined symbols for architecture armv6:
  "_OBJC_CLASS_$_CPPlotRange", referenced from:
      objc-class-ref in VerticalBarChart.o
  "_OBJC_CLASS_$_CPXYGraph", referenced from:
      objc-class-ref in VerticalBarChart.o
  "_OBJC_CLASS_$_CPLineStyle", referenced from:
      objc-class-ref in VerticalBarChart.o
  "_OBJC_CLASS_$_CPTextStyle", referenced from:
      objc-class-ref in VerticalBarChart.o
  "_OBJC_CLASS_$_CPAxisLabel", referenced from:
      objc-class-ref in VerticalBarChart.o
  "_OBJC_CLASS_$_CPBarPlot", referenced from:
      objc-class-ref in VerticalBarChart.o
  "_CPDecimalFromString", referenced from:
      -[VerticalBarChart renderInLayer:withTheme:] in VerticalBarChart.o
  "_OBJC_CLASS_$_CPColor", referenced from:
      objc-class-ref in PlotItem.o
      objc-class-ref in VerticalBarChart.o
  "_OBJC_CLASS_$_CPMutableTextStyle", referenced from:
      objc-class-ref in PlotItem.o
  "_OBJC_CLASS_$_CPFill", referenced from:
      objc-class-ref in VerticalBarChart.o
  "_OBJC_CLASS_$_CPGraphHostingView", referenced from:
      objc-class-ref in PlotItem.o
  "_CPDecimalFromFloat", referenced from:
      -[VerticalBarChart renderInLayer:withTheme:] in VerticalBarChart.o
  "_kCPPlainWhiteTheme", referenced from:
      -[VerticalBarChart renderInLayer:withTheme:] in VerticalBarChart.o
  "_OBJC_CLASS_$_CPTheme", referenced from:
      objc-class-ref in VerticalBarChart.o
ld: symbol(s) not found for architecture armv6
collect2: ld returned 1 exit status

在 Xcode 3.x 下,我能够成功地构建这个项目,但是对于 Xcode 4,它在定位设备时会出现上述错误(模拟器仍然可以正确构建)。

可能导致这些错误的原因是什么,我该如何解决?

最佳答案

我可以通过以下方式解决我的问题

改变build设置,

架构:标准(armv6,armv7)

仅构建事件架构:是的。

关于iphone - 为什么我在使用 Core Plot 构建 iPhone 应用程序时会看到以下链接器错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6097877/

相关文章:

iphone - 当我在 iPhone 上使用 TFHpple 解析器 HTML 时,已经找到了节点,但是返回的内容是 NULL?

iOS - 使用 AVAudioSessionCategoryAmbient 和 duckOthers 和 mixWithOthers 开启静音

ios - 如何在椭圆形或圆形上裁剪 UIImage?

swift - 将框架添加到框架项目后单元测试失败

ios - 如何选择可以更改的个人资料图片之类的图片?

iphone - 在屏幕上随机移动一个对象

ios - UIActivityViewController 中的 "Open in"功能

iphone - 如何在长NSString中找到动态数字?

iphone - “dylib”如何调用主程序?

ios - 无法在 iPad iO 上锁定屏幕方向