将静态库合并为单个 [英] merge static libraries into single
问题描述
如何将静态库合并为单个库?
How to merge the static libraries into single one?
我有三个静态库libSignatureLibary_armv6.a,libSignatureLibary_armv7.a和libSignatureLibary_i368.a
I do have three static libraries libSignatureLibary_armv6.a , libSignatureLibary_armv7.a and libSignatureLibary_i368.a
现在我想将这三个文件合并到一个单独的库中,该库可以命名为libSignatureLibary.a
Now i want to merge this three file into one single library which may be named has libSignatureLibary.a
谷歌搜索时我发现了脂肪这是开源工具!
While Googling I found lipo which is open source tool!
我是否需要运行任何额外的脚本语言来合并
Do i need to run any extra scripting language to merge
或在终端中lipo并传递lipo的参数。
or in terminal lipo and pass the parameter for the lipo.
可以建议我为这三个构建公共库。
Can any on advice me to build the common library for these three.
@thanks提前
Kiran
@thanks in advance Kiran
推荐答案
打开终端并转到包含libs的文件夹。
然后使用命令:
Open terminal and go to folder with your libs. Then use command:
lipo -create libSignatureLibary_armv6.a libSignatureLibary_armv7.a libSignatureLibary_i368.a -output libSignatureLibary.a
这篇关于将静态库合并为单个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!