简体   繁体   English

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

[英]Why am I seeing the following linker errors when building an iPhone app with Core Plot?

When building an iPhone app that uses the Core Plot framework, I am seeing the following linker errors: 在构建使用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

Under Xcode 3.x, I was able to build this project successfully, but with Xcode 4 it gives the above errors when targeting the device (the Simulator still builds correctly). 在Xcode 3.x下,我能够成功构建这个项目,但是使用Xcode 4时,它会在定位设备时出现上述错误(模拟器仍然正确构建)。

What could be causing these errors, and how can I fix them? 什么可能导致这些错误,我该如何解决它们?

I could solve my problem by 我可以解决我的问题

making change in build settings, 在构建设置中进行更改,

architecture :standard (armv6,armv7) 架构:标准(armv6,armv7)

Build active architecture only : Yes. 仅构建活动架构:是的。

清理您的项目,似乎库之间存在不匹配,因此链接不起作用。

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

相关问题 为什么在安装iPhone应用程序时出现CGContext错误? - Why am I getting CGContext errors when installing an iPhone app? 为什么我看到有关核心情节的_OBJC_CLASS _ $ _ CPGraphHostingView的错误? - Why am I seeing an error about _OBJC_CLASS_$_CPGraphHostingView with Core Plot? 为什么在我的应用程序中看到以下异常? - Why am I seeing the following exception within my application? 使用Core Plot iPhone - 链接器错误 - Using Core Plot iPhone - Linker error 为什么在显示此表视图时看到崩溃? - Why am I seeing a crash when displaying this table view? iPhone Core图:如何放大以下示例? - iPhone Core plot: how to zoom in this following example? 为什么我使用SoundCloud API遇到以下编译器错误? - Why am I getting the following compiler errors with the SoundCloud API? 在iPhone和iPad之间复制Core Data数据库时,为什么会出现写入错误? - Why am I getting a write error when copying a Core Data database between iPhone and iPad? 尝试与iPhone App集成时,Google plus SDK发出链接器错误 - Google plus SDK emits linker errors when trying to integrate with iPhone App 为什么我在生产应用程序中看到iAd的广告,就像我在开发中所做的那样? - Why am I seeing iAd's advertisements, like I did in development, in my production app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM