标签:
lipo -create
然后依次把两个.a文件拖到终端窗口, 命令行会变成这样:
lipo -create /Library/SDKs/CorePlotSDK/iphoneos.sdk/usr/lib/libCorePlot.a /Library/SDKs/CorePlotSDK/iphonesimulator.sdk/usr/lib/libCorePlot.a
然后接着输入 -output 目标文件路径,如:
-output /Users/keesuper/Test/Core_Plot_Test/coreplot/lib/libCorePlotAll.a
最后现在这样一条命令:
lipo -create /Library/SDKs/CorePlotSDK/iphoneos.sdk/usr/lib/libCorePlot.a /Library/SDKs/CorePlotSDK/iphonesimulator.sdk/usr/lib/libCorePlot.a -output /Users/keesuper/Test/Core_Plot_Test/coreplot/lib/libCorePlotAll.a
好了,回车,这样就会生成通用的静态库.
标签:
原文地址:http://www.cnblogs.com/huangzs/p/4476352.html