[英]How to declare libc++.dylib dependency from iOS framework with static library
I have a problem with an iOS framework of mine (for use in Cocoa applications). 我的iOS框架(在可可应用程序中使用)有问题。 It contains a static library, but it does not record the fact that it has a dependency on libc++.dylib
(LLVM's STL implementation). 它包含一个静态库,但没有记录它依赖libc++.dylib
(LLVM的STL实现)的事实。
This means that users of my framework have to manually add libc++.dylib
whenever they add my framework. 这意味着我的框架的用户在添加我的框架时必须手动添加libc++.dylib
。 Unless they know what to do, this is not a trivial obstacle. 除非他们知道该怎么做,否则这不是小事。
Who is an expert on Apple frameworks? 谁是Apple框架方面的专家? How can this dependency be declared such that the inclusion of libc++.dylib
happens automatically when the users application is linked? 如何声明此依赖关系,以便在链接用户应用程序时自动进行libc++.dylib
的包含?
尝试在Other Linker Flags
为使用静态库的应用程序中的构建目标添加选项-lc++
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.