码迷,mamicode.com
首页 > 其他好文 > 详细

如何查看库信息与合并库

时间:2016-06-28 12:39:08      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:

1.打开终端,执行如下命令:

  $ lipo -info path

  $ lipo -create path path -output newpath

2.示例:

 1 $ lipo -info /Users/***/Desktop/Release-iphoneos/DemoFramework.framework/DemoFramework
 2 Architectures in the fat file: /Users/***/Desktop/Release-iphoneos/DemoFramework.framework/DemoFramework are: armv7 arm64
 3 
 4 $ lipo -info /Users/***/Desktop/Release-iphonesimulator/DemoFramework.framework/DemoFramework
 5 Architectures in the fat file: /Users/***/Desktop/Release-iphonesimulator/DemoFramework.framework/DemoFramework are: i386 x86_64
 6 
 7 $ lipo -create /Users/***/Desktop/Release-iphoneos/DemoFramework.framework/DemoFramework /Users/***/Desktop/Release-iphonesimulator/DemoFramework.framework/DemoFramework -output /Users/***/Desktop/Release/DemoFramework
 8 
 9 $ lipo -info /Users/***/Desktop/Release/DemoFramework
10 Architectures in the fat file: /Users/***/Desktop/Release/DemoFramework are: i386 x86_64 armv7 arm64 

3.注意:如果是.a文件,path就是.a的路径;如果是.framework,path是framework里面的那个路径;最后找到newpath下生成的库替换之前的库文件就行。

如何查看库信息与合并库

标签:

原文地址:http://www.cnblogs.com/pinweyshg/p/5622827.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!