[英]Manually create framework from static library
I have question about creating framework manually from static library (for example LibraryName
). 我有关于从静态库手动创建框架的问题(例如
LibraryName
)。 I tested this solution: 我测试了这个解决方案
LibraryName.framework
LibraryName.framework
LibraryName.framework/Headers
and copied headers from source library LibraryName.framework/Headers
和复制的头文件 LibraryName.a
to file LibraryName.framework/LibraryName
LibraryName.a
重命名为文件LibraryName.framework/LibraryName
and it is working under Xcode. 它正在Xcode下工作。 But I have question: is it good way to do it like this ?
但我有疑问:是这样做的好方法吗?
-- -
Regards 问候
Adam 亚当
Yes, this is fine. 是的,这很好。 You can even link the static library against its dependencies and create a dynamic library.
您甚至可以将静态库与其依赖项链接起来,并创建一个动态库。 Both solutions will work.
两种解决方案都有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.