打包静态库,合并静态库

ios教程-创建静态库

http://my.oschina.net/shede333/blog/164449

iOS静态库(.a 和framework)

http://www.360doc.com/content/14/1216/06/19175681_433263860.shtml

*****************************

合并静态库

1,打开终端,输入

   lipo -create Release-iphoneos/libSBJSON.a Release-iphonesimulator/libSBJSON.a -output combine/libSBJSON.a

其中Release-iphoneos/libSBJSON.a   //为真机库。  
  Release-iphonesimulator/libSBJSON.a  //为模拟器库 
  combine/libSBJSON.a  //为合并后存放的路径
然后可以输入命令测试下是否成功

    lipo - info combine/libBase64.a

 //下面是输出 armv7 i386 有了两个就表示模拟器和真机都支持  其中armv7为真机架构 i386为模拟器

Architectures in the fat file: combine/libBase64.a are: armv7 armv7s i386 x86_64 arm64 

原文地址:https://www.cnblogs.com/developer-qin/p/4637984.html