shell常用命令 zero

1.crash log 奔溃定位

  dwarfdump --arch=<arch> --lookup 0x44b79 <target>.app.dSYM

  atos -arch <arch> -o <target>.app/<target> 0x000235f3

2.xcode安装路径查询和设置

  xcode-select -print-path #查询

  xcode-select --switch <path>   #设置

3.查看库的指令集

  xcrun -sdk iphoneos lipo -info

4.查看编译器路径

  xcrun -find -sdk iphoneos clang

5.合并 .a 静态库

  lipo -create <target1>.a  <target2>.a  -output <target>.a

6.查询xcodebuild sdk版本

  xcodebuild -showsdks

原文地址:https://www.cnblogs.com/hlfme/p/4633800.html