从iPhone查看临时崩溃报告 [英] Viewing Ad-Hoc crash reports from an iPhone

查看:229
本文介绍了从iPhone查看临时崩溃报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一些Beta测试。我发生了崩溃,并试图找出原因。如果连接iPhone,则可以在XCode组织器中看到崩溃报告。因此,我看到了这一点(我的应用称为Lineskipper):

I'm doing some beta testing. I've got a crash and trying to figure it out. If I connect the iPhone, I can see the Crash Report in the XCode organizer. So I see this (my app is called Lineskipper):

Thread 0 Crashed:
0   libobjc.A.dylib                 0x323fe6f4 0x323fc000 + 9972
1   UIKit                           0x32ba205e 0x32b60000 + 270430
2   UIKit                           0x32ba1ffe 0x32b60000 + 270334
3   UIKit                           0x32ba1fd0 0x32b60000 + 270288
4   UIKit                           0x32ba1d2a 0x32b60000 + 269610
5   UIKit                           0x32ba263e 0x32b60000 + 271934
6   UIKit                           0x32ba1656 0x32b60000 + 267862
7   UIKit                           0x32ba1032 0x32b60000 + 266290
8   UIKit                           0x32b9d928 0x32b60000 + 252200
9   UIKit                           0x32b9d3a0 0x32b60000 + 250784
10  GraphicsServices                0x32913b72 0x3290f000 + 19314
11  CoreFoundation                  0x32567c26 0x32511000 + 355366
12  CoreFoundation                  0x32567356 0x32511000 + 353110
13  GraphicsServices                0x32912cb8 0x3290f000 + 15544
14  GraphicsServices                0x32912d64 0x3290f000 + 15716
15  UIKit                           0x32b62768 0x32b60000 + 10088
16  UIKit                           0x32b6146c 0x32b60000 + 5228
17  LineSkipper                     0x000022e0 0x1000 + 4832
18  LineSkipper                     0x0000229c 0x1000 + 4764

不是特别有用。据我了解,我需要象征。因此,我在 Apple TN2151

Not particularly helpful. From what I understand, I need to symbolize. So I read this little nugget of wisdom in Apple TN2151


鉴于崩溃报告,匹配的
二进制文件及其.dSYM文件,
的符号表示相对容易。
Xcode Organizer窗口有一个选项卡,用于显示当前所选
设备的
个崩溃报告。您可以在此标签中的
中查看外部收到的
个崩溃报告-只需将它们放在
适当的目录中即可。
与第一部分中描述的Mac OS X目录
相同。
与您绑定了
的设备无关紧要,但是将
放在崩溃报告中的目录必须是用于绑定的
目录和选定的

Given a crash report, the matching binary, and its .dSYM file, symbolication is relatively easy. The Xcode Organizer window has a tab for crash reports of the currently selected device. You can view externally received crash reports in this tab - just place them in the appropriate directory. This is the same as the Mac OS X directory described in the first section. It doesn't matter which device you have tethered, but the directory in which you place the crash report must be the directory for the tethered and selected device.

没有必要将
二进制文件和.dSYM文件放在任何
特定位置。 Xcode使用
Spotlight和UUID查找
正确的文件。
很有必要,两个文件都在同一个
目录中,并且该目录是
,该目录由Spotlight索引。
应该在主目录中的任何位置。$

It is not necessary to place the binary and .dSYM file in any particular location. Xcode uses Spotlight and the UUID to locate the correct files. It is necessary, though, that both files be in the same directory and that this directory is one that is indexed by Spotlight. Anywhere in your home directory should be fine.

因此,基本上,我不明白。我将崩溃报告拖出了组织器,将其放在此处的Apple参考目录中(〜/ Library / Logs / CrashReporter / MobileDevice /),然后...双击它。它打开了控制台应用程序,我可以准确看到在管理器中看到的内容。

So basically, I don't get it. I drag the crash report out of the organizer, put it in the directory Apple references here (~/Library/Logs/CrashReporter/MobileDevice/) and then... I double-click it. It opens up the console app, and I see exactly what I saw in the Organizer.

那么我做错了吗?我怎么知道我做到了?

So did I do something wrong? How do I know I did it? How do I view the console file so that I know exactly where the crash was?

推荐答案

如何弄清楚崩溃的原因是什么?一段时间后,我的dSYM / app与崩溃报告不同步。哎呀。

Turns out that, after pulling my hair out for some time, my dSYM/app were out of sync with the crash report. Oops.

当然,发现这并非易事- Apple论坛上的该线程向我展示了如何确定文件是否匹配。

Of course, discovering that is no small feat - this thread on the Apple forum showed me how to determine whether or not the files match up.

在整个崩溃中,我意识到的另一件事是我缺少了很多东西-如果您看到诸如找不到文件之类的错误,而没有发现诸如此类的错误,请确保已安装所有正确的UNIX工具。如果不是这样,只需重新下载XCode并重新安装它,并在安装过程中取消选中UNIX工具选项,便会更加容易。

Another thing I realized during this whole debacle was that I was missing a lot of stuff - if you see errors like "file not found" and what not, make sure you have all of the proper UNIX tools installed. If not, it must be easier to just redownload XCode and reinstall it, checking off the UNIX tools option during the install process.

这篇关于从iPhone查看临时崩溃报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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