象征性崩溃日志-Xcode 8/macOS应用 [英] Symbolicate crash log - Xcode 8 / macOS app

查看:127
本文介绍了象征性崩溃日志-Xcode 8/macOS应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试表示通过电子邮件从用户那里收到的崩溃日志.

I'm trying symbolicating a crash log that I received from an user by e-mail.

我在Xcode.app中使用了传统的symbolicatecrash命令,但是 symbolicatecrash 命令只是失败并返回以下消息.

I used traditional symbolicatecrash command in Xcode.app, however symbolicatecrash command just failed and returns the following message.

$/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash MY_APP.crash MY_APP.app.dSYM > readable.crash
Unsupported crash log version: 12 at /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash line 614.

正如它所说的,我要象征性的崩溃日志的报告版本是12.

And as it says, the report version of the crash log I wanna symbolicate is 12.

Date/Time:             2016-10-15 15:40:42.625 +0900
OS Version:            Mac OS X 10.12 (16A323)
Report Version:        12

我的应用程序是纯粹的Cocoa应用程序,用于macOS (以前是OS X,不适用于iOS),是在MacOS Sierra上使用 Xcode 8.0 构建的,并在Mac App上分发用Swift存储和编写.

My app is a pure Cocoa app for macOS (formerly OS X, not for iOS) that was build with Xcode 8.0 on macOS Sierra, distributed on the Mac App Store and written in Swift.

同时,Xcode 8.0的组织者成功地表示通过MAS接收的同一应用程序版本的崩溃日志.所以我想,dSYM文件至少是正确的.但是出了点问题.

Meanwhile, Xcode 8.0's organizer successfully symbolicates crash log of the same app version that were received via MAS. So I suppose, the dSYM file is at least correct. But something is going wrong.

有人知道我如何用符号表示其报告版本为12的纯文本崩溃日志吗?

Does anyone know how I can symbolicate plain-text crash log its report version is 12?

推荐答案

最后,我找到了如何象征我的macOS应用崩溃日志!

Finally, I found how to symbolicate my crashlog for macOS app!

我已经按照下面的要旨进行了操作,并获得了易于理解的文字.

I've followed the instruction in the gist below and obtained human-readable lines.

如何象征OSX崩溃日志-gist

因此,简短地说,例如对于此行:

Thus, briefly speaking, for instance for this line:

0   com.MY_DOMAIN.MY_APP        0x000000010febce85 0x10fdc1000 + 1031813

在终端中运行以下行:

atos -o MY_APP.app/Contents/MacOS/MY_APP -arch x86_64 -l 0x10fdc1000 0x000000010febce85

然后您将获得可读的行:

then you'll get the readable line:

Document.init() -> Document (in MY_APP) (DefaultKey.swift:85)

这篇关于象征性崩溃日志-Xcode 8/macOS应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆