watch命令及lipo

最近工作中,用到的两个东西,记录下防止忘掉

一:

ios静态库打包命令:/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo -create utilarmv7/util_IOS.a  utilarmv7s/util_IOS.a utilarm64/util_IOS.a utilsimulator/util_IOS.a utilsimulator6/util_IOS.a -output util_IOS.a

注意:

/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo -info util_IOS.a
Architectures in the fat file: util_IOS.a are: armv7 armv7s i386 x86_64 arm64 

由于模拟器6和之前的架构不同,所以模拟器也需要生成i386 和x86_64的两套架构的.a文件

(/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -I. -arch x86_64 -isysroot /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk   -c -o bn_reverse.o bn_reverse.c

/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -I. -arch i386 -isysroot /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk   -c -o bncore.o bncore.c

二:

linux的watch指令很有用,比如查看网络连接时可以 watch ss -s,但是想要将所有变化输入文件中,却始终只显示最后的一次输出 比如 watch ss -s >> 1.txt,txt中只有最后的一个结果,即便使用的是>>(这个地方没有想清楚,有知道的同学希望告知)

不过可以使用watch ss -s | cat >>1.txt这种方式,就可以将所有变化都记录到1.txt中了,这样对比起来方便多了,也方便看到某关心项的变化趋势




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值