1.将三个文件(.crash,.app, .dsym)放入一个文件夹:
.crash文件也可能是.ips文件;.app文件是.ipa文件改成.zip解压后得到的;.dsym文件也可以是”.dSYM/Contents/Resources/DWARF/“文件夹里层的文件
2.执行:
export DEVELOPER_DIR="/Applications/XCode.app/Contents/Developer"
3.执行:
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/Library/PrivateFrameworks/DVTFoundation.framework/symbolicatecrash (dsym文件名).dsym (crash文件名).crash > log.txt
或者
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/Library/PrivateFrameworks/DVTFoundation.framework/symbolicatecrash (crash文件名).crash > log.txt
log.txt中就是我们能读懂的崩溃日志.
如果找不到"symbolicatecrash",执行:
find /Applications/Xcode.app -name symbolicatecrash -type f
找到它
网友评论