lipo -create
然后依次把两个.a文件拖到终端窗口, 命令行会变成这样:
lipo -create /Users/sunww/Desktop/CHProject/Chat11/TestFrameWork/TestStaticFrameWork/build/Debug-iphoneos/libTestStaticFrameWork.a /Users/sunww/Desktop/CHProject/Chat11/TestFrameWork/TestStaticFrameWork/build/Debug-iphonesimulator/libTestStaticFrameWork.a
然后接着输入 -output 目标文件路径,如:
-output /Users/sunww/Desktop/libb.a
最后现在这样一条命令:
lipo -create /Users/sunww/Desktop/CHProject/Chat11/TestFrameWork/TestStaticFrameWork/build/Debug-iphoneos/libTestStaticFrameWork.a /Users/sunww/Desktop/CHProject/Chat11/TestFrameWork/TestStaticFrameWork/build/Debug-iphonesimulator/libTestStaticFrameWork.a -output /Users/sunww/Desktop/libb.a
回车! 好了, 这样就会生成我们需要的通用类库 libb.a