symbol(s) not found for architecture armv6(未找到架构 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 的符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:未找到架构 armv6 的符号
基础教程推荐
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01