16

当使用自己的 iPhone 进行开发时,很容易通过 XCode->Organizer->Crash Logs 访问任何崩溃日志。

如果他们没有为 XCode 中的开发设置它,如何访问另一个人手机上的崩溃日志,如果您通过临时分发将您的应用程序分发给他们进行 beta 测试,可能会出现这种情况?

4

5 回答 5

21

两种方式:

  • iTunes 在定期同步期间同步所有崩溃报告。它们可以在 Mac 上的 Library/Logs/CrashReporter/MobileDevice 中找到,在 Windows 上可能在 %APPDATA% 的某个位置。

  • 您可以在任何 Mac 上使用适用于 Mac OS X 的 iPhone 配置实用程序来访问手机的控制台和崩溃日志。注意:适用于 Windows 和 Mac 的 iPhone Web 配置实用程序(请注意名称中的“web”)不允许此类访问,仅提供配置实用程序的部分功能呃,不,你不能。Xcode 在 Organizer(来自 Window 菜单)中提供了这个功能,但 iPCU 没有。

于 2008-10-05T14:06:17.400 回答
11

来自 Apple 的技术说明 TN2151

For applications that have been distributed using Ad Hoc or Enterprise methods, getting crash reports requires user cooperation. Specifically, the user will need to retrieve the crash report from the directory where it was copied by iTunes. Depending on the platform, the directory is:

Mac OS X: ~/Library/Logs/CrashReporter/MobileDevice/<DEVICE_NAME>

Windows XP: C:\Documents and Settings\<USERNAME>\Application Data\Apple Computer\Logs\CrashReporter\MobileDevice\<DEVICE_NAME>

Windows Vista or 7: C:\Users\<USERNAME>\AppData\Roaming\Apple Computer\Logs\CrashReporter\MobileDevice\<DEVICE_NAME>

<USERNAME> is the user's login name for the computer. <DEVICE_NAME> is the name of the iPod touch or iPhone, for example, "John's iPhone".

You are only interested in .crash files. The crash report's file name begins with the application name and contains date/time information. In addition, <DEVICE_NAME> will appear at the end of the file name, before the extension.

于 2010-12-21T23:20:34.230 回答
6

http://www.ispeeddial.com/how-to-find-the-crash-log-for-an-iphone-application/

这也会有所帮助;

http://furbo.org/2008/08/08/symbolicatifination/

于 2008-10-05T16:22:33.773 回答
3

与@millenomi 所说的相关——据我所知,崩溃日志是在您将 iPhone 连接到计算机时下载的,而不是在您通过 iTunes 同步手机时下载的。如果您的用户将 iTunes 配置为在连接时不同步,那么知道这可以为他们节省同步时间。同样,如果您的应用程序在连接到计算机时崩溃,仅通过 iTunes 同步不足以下载崩溃日志 - 我发现我需要断开手机与计算机的连接并重新连接。

我只在配置为开发设备的 iPhone 和 iPod touch 上对此进行了测试。不知道这是否有什么不同。

于 2008-10-05T16:32:56.293 回答
1

On an iPhone 5, you do not need to connect the iPhone to iTunes to see the logs. Not sure about other iPhone versions but you can get to the logs by opening up Settings and then navigating to:

Settings -> General -> About -> Diagnostics & Usage -> Diagnostics & Usage Data

For the app you are looking for all crash logs should be in this area as:

-.ips

Not 100% sure if this works only for ad hoc apps or not. I think it works for any apps.

于 2014-07-11T20:53:12.463 回答