Is your Apple iDevice app closing down on you?

Posted by: Phil Harris on 10 June 2011



We have had a report of a user with an Apple iDevice app which exits whilst in use. If this happens wil any app then there is useful debugging information which can be provided to the application authors that will allow them to have a better chance of nailing the issue for you. (This applies to any application - not just ours.)


To submit a crash log for an app crash please follow the instructions below to retrieve the crash report from your computer.


Ideally create a text file with a description of the problem then zip all the crash logs along with the text file and name it something sensible.


When an application crashes on the iPhone or iPod touch, a "crash report" is stored on the device. Crash reports describe the conditions under which the application terminated, in most cases including a complete stack trace for each executing thread, and are typically very useful for debugging issues in the application.


When the user synchronizes their device using iTunes, crash reports are copied to a directory on the user's computer. If the application was distributed via the App Store and the user has chosen to submit crash logs to Apple, the crash log will be uploaded and the developer can download it via iTunes Connect. 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.