简体   繁体   English

如何在没有存档的情况下符号化但具有.dsym文件?

[英]How can I symbolicate without archive but have .dsym files?

I have to symbolicate a crash report given to me, however I didn't create the initial archive that was sent to Apple. 我必须象征着收到的崩溃报告,但是我没有创建发送给Apple的初始存档。 I do, however, have the .dsym files. 但是,我确实有.dsym文件。 Is there a way I can symbolicate the crash file? 有没有办法我可以象征崩溃文件?

Thanks. 谢谢。

This is assuming Xcode 8.2.1 is installed as Xcode.app 假设Xcode 8.2.1已安装为Xcode.app

Create a new folder on your desktop and call it symbolication Put the .dsym files into the symbolication folder 在桌面上创建一个新文件夹,并将其命名为符号。将.dsym文件放入符号文件夹中

download the crash report (I used CustomerID.crash as the format of these files) 下载崩溃报告(我使用CustomerID.crash作为这些文件的格式)

In the terminal, type: 在终端中,键入:

cp /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash  ~/desktop/symbolication/symbolicgtecrash
cd ~/desktop/symbolication
export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"

Then for each file to symbolicate, type: 然后为每个要符号化的文件键入:

./symbolicatecrash CustomerID.crash > CustomerID_symbolicated.crash

(where CustomerID is the customer id used when saving the crash report) (其中CustomerID是保存崩溃报告时使用的客户ID)

Here is another way to get the crash logs:- 这是获取崩溃日志的另一种方法:

copy your app dSYM file path using atos command with crash address and execute on terminal:- 使用带有崩溃地址的atos命令复制您的应用dSYM文件路径,并在终端上执行:

Here is the command:- 这是命令:

atos -arch arm64 -o ~/Documents/yourApp.app.dSYM/Contents/Resources/DWARF/yourApp yourExceptionAddress atos -arch arm64 -o ~/Documents/yourApp.app.dSYM/Contents/Resources/DWARF/yourApp yourExceptionAddress

eg:- 例如:-

yourExceptionAddress = 0x100048000 yourExceptionAddress = 0x100048000

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM