【问题标题】:add framework to static library xcode将框架添加到静态库 xcode
【发布时间】:2014-05-05 04:13:57
【问题描述】:

我正在尝试将此 mpos.framework 添加到我的静态库中,但我得到了这个:

架构 i386 的未定义符号: “_OBJC_CLASS_$_MPMpos”,引用自: libSerenity.a(Widget.o) 中的 objc-class-ref ld:未找到体系结构 i386 的符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

我也应该将 mpos.framework 添加到 DependentApp 吗?

【问题讨论】:

    标签: ios xcode


    【解决方案1】:

    i should add the mpos.framework to the DependentApp also? - 你可以通过尝试轻松回答。

    我猜这不是你的问题。看起来 mpos.framework(及其内部库)不是 FAT 库,仅针对 ARM 架构进行编译。它可能不包含已编译代码的 i386(模拟器)版本。您可以在此处找到有关 FAT 库的更多信息:Build fat static library (device + simulator) using Xcode and SDK 4+

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-13
      • 1970-01-01
      • 2010-12-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多