Skip to content

Instantly share code, notes, and snippets.

@edwardean
Created December 17, 2015 08:50
Show Gist options
  • Save edwardean/01a6c5a76069308b499e to your computer and use it in GitHub Desktop.
Save edwardean/01a6c5a76069308b499e to your computer and use it in GitHub Desktop.
lipo -create "1.a" "2.a" -output “new.a"合并多个静态库为一个
$ lipo -info libProprietary.a查看某个静态库的架构 -detailed_info更详细的信息
$ lipo -thin armv6 libProprietary.a -output libProprietary-armv6.a
将一个多架构的.a拆分成单个架构
$ ar -t libProprietary-armv6.a 查看静态库的对象文件
ar -x libProprietary-armv6.a 将一个静态库解压缩成多个.o文件
将o文件合并为a文件
libtool -static -o lib.a *.o
otool -arch arm64 -l AVOSCloud | grep bitcode 检查三方库(.a或framework)是否支持bitcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment