1-找到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
2-将symbolicatecrash拷贝到工作目录 比如: 桌面的crash文件夹 e.g :/Users/BillyWang/Desktop/crash
cp /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash
/Users/<username>/Desktop/crash
把 .app和.app.dSYM 拷贝到工作目录,和symbolicatecrash放一起
3-执行symbolicatecrash
cd /Users/<username>/Desktop/crash
4-执行命令
./symbolicatecrash ****.crash ****.dSYM > ****.crash(/****.txt)
这时候终端有可能会出现:Error: "DEVELOPER_DIR" is not defined at ./symbolicatecrash line 60.
输入命令:export DEVELOPER_DIR="/Applications/XCode.app/Contents/Developer"