没有为架构armv6找到的符号 [英] symbol(s) not found for architecture armv6

查看:136
本文介绍了没有为架构armv6找到的符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请从以下错误中帮助我。

Please help me from the below error.

我正在使用第三方框架(libIPhonecharting)处理图表,在模拟器中每件事情都可以正常工作,但是当我在尝试构建.app文件以安装在IPAD设备中我收到以下错误消息。

I am working on graphs using 3rd party framework (libIPhonecharting), every thing works fine in simulator, but when I am trying to build .app file to install in IPAD Device I get the below error message.


忽略文件
/ Users / xyz /Desktop/xyzIPAD/library/4.0/Release-iphoneos/libIPhoneCharting.a,
文件是为存档而构建的,而不是被链接的架构
(armv6)

ignoring file /Users/xyz/Desktop/xyzIPAD/library/4.0/Release-iphoneos/libIPhoneCharting.a, file was built for archive which is not the architecture being linked (armv6)

架构armv6的未定义符号:_ OBJC_CLASS _ $ _ DTCStroke,
引自:
在DemoLineChart.o中的objc-class-ref_OBJC_CLASS _ $ _ IPCBar3DChart,引自:
DemoBar3DChart.o中的objc-class-ref_OBJC_CLASS _ $ _ IPCLineChart,引用自:
objc-class-ref in DemoLineChart.o_ OBJC_CLASS _ $ _ DTCDefaultCategoryDataset,引自:
objc-class-ref in在DemoLineCha中DemoBar3DChart.o
objc-class-ref rt.o_DTC_STROKE_CAP_SQUARE,引自:
+ [DemoLineChart(Private)getRenderWithRender:]在DemoLineChart.o_ OBJC_CLASS _ $ _ IPCTitle中,引自:
objc-class-ref in DemoBar3DChart.o $在DemoLineChart.o_DTC_STROKE_JOIN_BEVEL中的b $ b objc-class-ref,引用自:
+ [DemoLineChart(Private)getRenderWithRender:] DemoLineChart.o ld:找不到架构armv6的符号
collect2:ld返回1退出状态

Undefined symbols for architecture armv6: "_OBJC_CLASS_$_DTCStroke", referenced from: objc-class-ref in DemoLineChart.o "_OBJC_CLASS_$_IPCBar3DChart", referenced from: objc-class-ref in DemoBar3DChart.o "_OBJC_CLASS_$_IPCLineChart", referenced from: objc-class-ref in DemoLineChart.o "_OBJC_CLASS_$_DTCDefaultCategoryDataset", referenced from: objc-class-ref in DemoBar3DChart.o objc-class-ref in DemoLineChart.o "_DTC_STROKE_CAP_SQUARE", referenced from: +[DemoLineChart(Private) getRenderWithRender:] in DemoLineChart.o "_OBJC_CLASS_$_IPCTitle", referenced from: objc-class-ref in DemoBar3DChart.o objc-class-ref in DemoLineChart.o "_DTC_STROKE_JOIN_BEVEL", referenced from: +[DemoLineChart(Private) getRenderWithRender:] in DemoLineChart.o ld: symbol(s) not found for architecture armv6 collect2: ld returned 1 exit status


推荐答案

以下是我遇到此问题的方法:

我添加了 .h .m 和另一个项目的NIB将它们拖到我的项目导航器上。 Xcode没有正确地将它们添加到Build Phases。

I added a .h, .m and NIB from another project by dragging them onto my project navigator. Xcode didn't add them to the Build Phases properly.

我解决此问题的方法:


  • 在导航器菜单中转到目标

  • 单击构建阶段选项卡

  • .m 文件添加到编译源(将其拖过,或使用+按钮)

  • 添加 .xib 到复制捆绑资源

  • 清理并构建

  • Go to the Target in the navigator menu
  • Click on the "Build Phases" tab
  • Add the .m file to "Compile Sources" (either drag it across, or use the + button)
  • Add the .xib to "Copy bundle resources"
  • Clean and build

这对我很有帮助

这篇关于没有为架构armv6找到的符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆