Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing crash logs on iPhones used for ad hoc distribution

Tags:

logging

iphone

When using one's own iPhone for development it's easy enough to access any crash logs via XCode->Organizer->Crash Logs.

How does one access crash logs on another person's phone if they don't have it set up for development in XCode, as would likely be the case if you were distributing your app to them via ad hoc distribution for beta testing?

like image 619
Lawrence Johnston Avatar asked Oct 05 '08 07:10

Lawrence Johnston


3 Answers

Two ways:

  • iTunes syncs all crash reports during a regular sync. They can be found in Library/Logs/CrashReporter/MobileDevice on a Mac and probably somewhere in %APPDATA% on Windows.

  • You can use the iPhone Configuration Utility for Mac OS X on any Mac to access the phone's console and crash logs. Note: the iPhone Web Configuration Utility, which is available for Windows and Mac (note the "web" in the name) does not allow this kind of access and only provides a portion of the Configuration Utility's features. Er, no you can't. Xcode provides this facility in the Organizer (from the Window menu), but not iPCU.

like image 108
millenomi Avatar answered Nov 09 '22 03:11

millenomi


From Apple's Technical Note 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.

like image 40
Simon Whitaker Avatar answered Nov 09 '22 05:11

Simon Whitaker


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

This will also be helpful;

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

like image 38
Andrew Grant Avatar answered Nov 09 '22 05:11

Andrew Grant