如何用Xcode 8表示崩溃日志? [英] How to symbolicate crash log with Xcode 8?
问题描述
我应该从我的设备中获得符号。我按照
尝试使用这些步骤:
1)创建一个新文件夹,让我们说Universe来保存这些东西。
2)使用Finder的Go to Folder实用程序。使用路径/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources /
查找symbolicatecrash文件,您可以手动复制和将此文件粘贴到您的Universe文件夹
3)将您的应用程序的崩溃和存档放在您的文件夹中(存档将保存所有的dysm文件。或者您可以放置所有的文件dYsm文件)
4)CD到你的Universe文件夹目录。现在运行此命令
export DEVELOPER_DIR =/ Applications / Xcode.app / Contents / Developer
5)在崩溃时运行symbolicate命令
./ symbolicatecrash myCrash.crash> SymbolicatedM.crash
Voila !!你有你的符号化崩溃日志。
PS:这个的附加优点是上面的设置是一次性设置并且是可重复使用的。所有需要的只是替换你的崩溃文件和dysm文件,然后每次你想要一个新的崩溃符号时重复步骤5。再见复杂的命令!
I should have the symbolicate from my device. I followed the instruction from http://jmillerdev.net/symbolicating-ios-crash-files-xamarin-ios.
I created the alias
for Xcode 8
alias symbolicate="/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash -v"
I updated the developer directory
export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
and then the symbolicate
symbolicate -o "symbolicatedCrash.txt" "MyAppName 2-12-14, 9-44 PM.crash" "MyAppName.app"
but I have an error
Symbolicating myInventories170313.crash ... while reading myInventories170313.crash, No such file or directory : at /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash line 899.
Try using these steps:
1) create a new folder ,lets say "Universe" , to hold the stuff.
2) use the Go to Folder utility from Finder . Use the path /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/
Find "symbolicatecrash" file and you can manually copy and paste this file to your Universe folder
3) Place your crash and Archive of your app in your folder ( Archive will hold all the dysm files. Alternatively you can place all your dYsm files )
4) CD to your "Universe" folder directory . Now run this command
export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
5)run the symbolicate command on your crash
./symbolicatecrash myCrash.crash > SymbolicatedM.crash
Voila!! you have your symbolicated crash log.
PS : The added advantage of this is that the above setup is a one time setup and is reusable .All that is required is just replace your crash file and dysm file , then just repeat step 5 each time you want a new crash symbolicated. Bye bye complicated commands!
这篇关于如何用Xcode 8表示崩溃日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!