gpt4 book ai didi

objective-c - 找不到体系结构 armv6 的符号

转载 作者:太空狗 更新时间:2023-10-30 03:46:48 25 4
gpt4 key购买 nike

请帮助我解决以下错误。

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

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

最佳答案

以下是我遇到这个问题的原因:

我从另一个项目添加了一个 .h.m 和 NIB,方法是将它们拖到我的项目导航器上。 Xcode 没有将它们正确添加到构建阶段。

我对这个问题的解决方案:

  • 转到导航器菜单中的目标
  • 单击“构建阶段”选项卡
  • .m 文件添加到“Compile Sources”(拖动它,或使用 + 按钮)
  • .xib 添加到“Copy bundle resources”
  • 清理和构建

它对我有用,非常感谢你

关于objective-c - 找不到体系结构 armv6 的符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7953168/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com