I am building a library for iOS, using an existing 3rd-party SDK. Got the code to compile and the library is generated. However, when linking against the resulting/my library, Xcode reports two missing symbols. I checked my library with nm(1) and indeed the symbols are both marked unresolved as below:
U _OBJC_CLASS_$_MyController
U _OBJC_CLASS_$_MySdk
The funny part is that the same symbols are defined in the SDK framework [library], or so I think. Please see nm & grep output below:
U _OBJC_CLASS_$_MySdk
0000000000008d10 S _OBJC_CLASS_$_MySdk
U _OBJC_CLASS_$_VKSdk
U _OBJC_CLASS_$_MySdk
U _OBJC_CLASS_$_MySdk
U _OBJC_CLASS_$_MyViewController
000000000000ab88 S _OBJC_CLASS_$_MyViewController
Both of those classes (MySdk and MyViewController) are defined in the SDK framework and utilized through their CLASS methods. Don't know whether this is relevant.
Where should I look next?
Thank you
答案 0 :(得分:0)
事实证明,我不得不手动将我的框架添加到xcconfig文件中。现在,代码编译好了。