ios将模拟器与真机.a文件合并

1,command+b build一下工程
2,Debug-iphoneos和Debug-iphonesimulator文件下都会出现一个.a文件
3,将Debug-iphonesimulator中重命名xxx_i386.a
4,将两个文件都拷贝到一个目录下,打开终端
5,
xxxiMac:111 Ken$ [color=red]lipo -info libupnpx_i386.a [/color]
[color=green]input file libupnpx_i386.a is not a fat file
Non-fat file: libupnpx_i386.a is architecture: i386
KenzhaotekiiMac:111 Ken$ lipo -create libupnpx.a libupnpx_i386.a libupnp_universal.a[/color]
6,
xxxiMac:111 Ken$[color=red] lipo -info libupnpx.a [/color]
[color=green]Architectures in the fat file: libupnpx.a are: armv7 (cputype (12) cpusubtype (11)) [/color]

7,(5,6)分别查看一个支持i386一个armv7,准备合并
xxxiMac:111 Ken$ [color=red]lipo -create libupnpx.a libupnpx_i386.a libupnp_universal.a[/color]
[color=green]lipo: no output file specified
lipo: Usage: lipo [input_file] ... [-arch <arch_type> input_file] ... [-info] [-detailed_info] [-output output_file] [-create] [-arch_blank <arch_type>] [-thin <arch_type>] [-remove <arch_type>] ... [-extract <arch_type>] ... [-extract_family <arch_type>] ... [-verify_arch <arch_type> ...] [-replace <arch_type> <file_name>] ...[/color]
8,查看生成文件
xxxiMac:111 Ken$[color=red] lipo -info libupnp_universal.a [/color]
[color=green]Architectures in the fat file: libupnp_universal.a are: armv7 (cputype (12) cpusubtype (11)) i386 [/color]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值