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

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

问题描述

请帮助我解决以下错误.

Please help me from the below error.

我正在使用 3rd 方框架 (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_$_IPCBar3DChart" 中的objc-class-ref,引用自:DemoBar3DChart.o "_OBJC_CLASS_$_IPCLineChart" 中的 objc-class-ref,引用自:DemoLineChart.o "_OBJC_CLASS_$_DTCDefaultCategoryDataset" 中的 objc-class-ref,引用自:DemoBar3DChart.o 中的 objc-class-refDemoLineChart.o "_DTC_STROKE_CAP_SQUARE" 中的 objc-class-ref,引用自:+[DemoLineChart(Private) getRenderWithRender:] in DemoLineChart.o "_OBJC_CLASS_$_IPCTitle",引用自:DemoBar3DChart.o 中的 objc-class-refDemoLineChart.o "_DTC_STROKE_JOIN_BEVEL" 中的 objc-class-ref,引用自:+[DemoLineChart(Private) getRenderWithRender:] in 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 没有正确地将它们添加到构建阶段.

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 文件添加到Compile Sources"(拖动它,或使用 + 按钮)
  • .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天全站免登陆