轉(zhuǎn)換前,需要三個(gè)文件
(1)xxx.ips文件【將其修改為:xxx.crash】
獲取途徑:
windows 可通過iTools導(dǎo)出;
mac 可借助Xcode,Xcode->window->Devices and Simulators->View Device Logs->導(dǎo)出crash log,并將文件名修改為 xxx.crash
(2)symbolicatecrash
獲取途徑:
/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash
(3)xxx.dSYM
獲取途徑:
第一種:Xcode->window->Organizer-> Archives
第二種:從自動(dòng)化打包平臺(tái)的歸檔文件中查找(例如Jenkins)
第三種:Xcode->編譯項(xiàng)目工程->編譯成功后,products目錄下xxx.app->右鍵,Show in Finder可找到 xxx.app.dSYM
轉(zhuǎn)換步驟
(1)創(chuàng)建一個(gè)文件夾(假設(shè)命名為crash)
(2)將上述三個(gè)文件,放入crash文件夾中
(3)打開終端,執(zhí)行如下命令
./Symbolicatecrash xxx.crash xxx.app.dSYM > xxx.log
(4)若報(bào)錯(cuò):"DEVELOPER_DIR" is not defined,執(zhí)行如下命令
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
然后,再次執(zhí)行
./Symbolicatecrash xxx.crash xxx.app.dSYM > xxx.log