未找到架构 armv6 的符号

发布于 2024-12-13 04:23:43 字数 1008 浏览 0 评论 0原文

请帮助我解决以下错误。

我正在使用第 3 方框架(libIPhonecharting)处理图表,在模拟器中一切正常,但是当我尝试构建 .app 文件以安装在 IPAD 设备中时,我收到以下错误消息。

忽略文件 /Users/xyz/Desktop/xyzIPAD/library/4.0/Release-iphoneos/libIPhoneCharting.a, 文件是为存档而构建的,这不是正在链接的架构 (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-ref DemoLineChart.o“_DTC_STROKE_CAP_SQUARE”中的 objc-class-ref,引用自: DemoLineChart.o“_OBJC_CLASS_$_IPCTitle”中的+[DemoLineChart(Private) getRenderWithRender:],引用自: DemoBar3DChart.o 中的 objc-class-ref DemoLineChart.o“_DTC_STROKE_JOIN_BEVEL”中的 objc-class-ref,引用自: +[DemoLineChart(Private) getRenderWithRender:] 在 DemoLineChart.o ld 中:找不到架构 armv6 的符号 collect2:ld返回1退出状态

Please help me from the below error.

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.

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)

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

鹤舞 2024-12-20 04:23:43

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

我通过将另一个项目中的 .h.m 和 NIB 拖到我的项目导航器上来添加它们。 Xcode 没有将它们正确添加到构建阶段。

我对此问题的解决方案:

  • 转到导航器菜单中的目标
  • 单击“构建阶段”选项卡
  • .m文件添加到“编译源”(或者将其拖动跨越,或使用 + 按钮)
  • .xib 添加到“复制捆绑资源”
  • 清理并构建

它对我有用,非常感谢你

Here's how I got this problem:

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.

My solution for this problem:

  • 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

It works for me thanks a lot to you

一身仙ぐ女味 2024-12-20 04:23:43

有几个问题:您的外部实验室有自己的项目文件吗?如果是这样,请确保它已配置为正确构建到arm6和arm7。对您的主项目文件执行相同的操作以达到良好的效果。另外,你用的是哪个版本的 XCOde?不同版本之间存在显着差异。

查看库方案(取决于您使用的 XCode 版本)并确保其配置正确,以便在 iOS 设备上进行调试;我假设您正在构建自己的设备以进行调试:此建议是因为:“文件是为存档而构建的,而不是正在链接的体系结构(armv6)”

在尝试了所有这些操作之后,请务必先清理整个项目每个构建。

希望这有帮助。我觉得你的痛苦 XCOde 是邪恶的。

Few questions: Does you external lb have it's own project file? If so make sure that it is configured to build to arm6 and arm7 properly. Do the same for your main project file for good measure. Also, what version of XCOde are you on? There are significant differences between different versions.

Look at the libs scheme (depending on the version of XCode you are using) and make sure that is configured properly for debugging on the iOS device; I assuem you are building to your own device for debugging purposes: this recommendation is because of : "file was built for archive which is not the architecture being linked (armv6)"

After trying each of these things be sure to clean the entire project before each build.

Hope this helps. I feel your pain XCOde is evil.

云归处 2024-12-20 04:23:43

我通过向目标添加缺少的框架解决了这个问题 - >构建阶段 - >将二进制文件与库链接

I solved this issue by adding absent framework to target->Build Phases->Link Binary With Libraries

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文