symbolicatecrash 分析手机crash log

取出手机上crash log

手机连上itunes同步后,log在mac这个目录下~/Library/Logs/CrashReporter/MobileDevice/;

找到电脑上symbolicatecrash位置

输入:

find /Applications/Xcode.app -name symbolicatecrash -type f 

你会找到:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/./symbolicatecrash

用命令将symbolicatecrash拷贝到桌面的crash文件夹里面,与.app和.app.dSYM放一起

cp /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash /Users/angel/Desktop/crash

反编译crash文件

打开终端用命令切换到桌面的crash目录下:

cd /Users/你的电脑名称/Desktop/crash

执行命令:

./symbolicatecrash /Users/angelseahappiness/Desktop/crash/Control_2014-01-13-111838_Lynns-iPad3.crash /Users/angel/Desktop/crash/Control.app.dSYM > Control_symbol.crash

这时候终端如果出现:Error: "DEVELOPER_DIR" is not defined at ./symbolicatecrash line 60, 输入命令:

export DEVELOPER_DIR="/Applications/XCode.app/Contents/Developer" 

再执行:

./symbolicatecrash /Users/angelseahappiness/Desktop/crash/Control_2014-01-13-111838_Lynns-iPad3.crash /Users/angel/Desktop/crash/Control.app.dSYM > Control_symbol.crash

这时候终端将会进行处理了, 将终端完成以后,在crash文件夹里面会多出一个文件Control_symbol.crash:这个就是最终的文件,可以查看bug!

你可能感兴趣的:(symbolicatecrash 分析手机crash log)