简体   繁体   English

将框架添加到静态库xcode

[英]add framework to static library xcode

i am trying to add this mpos.framework to my Static library but i get this : 我正在尝试将此mpos.framework添加到我的静态库中,但是我得到了:

Undefined symbols for architecture i386: "_OBJC_CLASS_$_MPMpos", referenced from: objc-class-ref in libSerenity.a(Widget.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) 架构i386的未定义符号:“ _ OBJC_CLASS _ $ _ MPMpos”,引用自:libSerenity.a(Widget.o)ld中的objc-class-ref ld:架构i386找不到符号clang:错误:链接器命令失败,并带有退出代码1(使用-v查看调用)

在此处输入图片说明

i should add the mpos.framework to the DependentApp also? 我也应该将mpos.framework添加到DependentApp吗?

i should add the mpos.framework to the DependentApp also? - You can easily answer this by trying it. -您可以通过尝试轻松地回答。

My guess is that this is not your problem. 我的猜测是这不是您的问题。 It looks like mpos.framework (and its internal library) is not FAT library and is compiled for ARM architecture(s) only. 看起来mpos.framework(及其内部库)不是FAT库,并且仅针对ARM体系结构进行了编译。 It probably do not contain i386 (simulator) version of the compiled code. 它可能不包含i386(模拟器)版本的已编译代码。 You can find more information about FAT libraries here: Build fat static library (device + simulator) using Xcode and SDK 4+ 您可以在此处找到有关FAT库的更多信息: 使用Xcode和SDK 4+构建胖静态库(设备+模拟器)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM