2014-03-26 119 views
0

我試圖此mpos.framework添加到我的靜態庫,但我得到這樣的:添加框架,靜態庫的Xcode

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)

enter image description here

我應該mpos.framework添加到DependentApp也?

回答

0

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+