可以到以下網址查看具體的製作過程:http://blog.csdn.net/pjk1129/article/details/7255163
我這裏總結如下:
1、首先生成模擬器下地.a靜態庫,通過命令lipo -info libTest.a 可知其Architectures in the fat file: libTest.a are: i386 x86_64 ;
2、再生成device(真機)環境下地.a靜態庫,通過命令lipo -info libTest.a可知其Architectures in the fat file: libTest.a are: armv7 arm64;
3、通過命令lipo -create ./simular/libTest.a ./releaseos/libTest.a -output ./libTest.a 可以生成在模擬器和真機環境下均可使用的靜態庫;