从一组静态库构建框架
我有一组静态库 (.a),我想制作一个 OSX 框架,它结合了所有这些库。这可能吗?我该怎么做?
我不能只是将这些库放入 xcode 中的“将二进制文件与库链接”构建阶段,因为它们没有依赖项,这就是为什么它们不与二进制文件链接并只是跳过。
I have a set of static libraries (.a) and I want to make an OSX framework, which combines all of this libraries. Is it possible and how can I do that?
I cant just put this libraries to "Link binary with libraries" build phase in xcode because there are no dependencies to them, thats why they doesnt link with binary and just skipped..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经尝试了大约一个小时,我认为你真的不能。您可以将它们粘在一起并包含所需的标头,您可能必须使用 extern 前缀编写所有原型,以便编译器不会针对隐式声明发出警告。这是一篇关于制作静态框架的文章http://blog.cloudmade。 com/2010/05/10/iphone-static-framework/
I have been trying for about an hour, I don't think you really can. You can stick them together and include required headers, you may have to write all of the prototypes with the extern prefix so the compiler wont give warnings for implicit declarations. Here is an article on making static frameworks http://blog.cloudmade.com/2010/05/10/iphone-static-framework/