Thursday 11 October 2012

How to find the logs on iPhone device?

Recently while developing a iPhone application basing on Augmented reality concept, we faced one problem like crashing the application on the device. We can't test this augmented reality concept on iOS simulator, we need to test it on the device only. And while testing the application , it was crashing. When an application was crashed, we generally takes the Backtrace and we will analyze the logs. If it is on iOS simulator, we can easily get the the logs and analyze. But our application is crashing on the device, we don't know how to get the logs for the crashing which was happend on the device.

    We tried in many ways, and no use. Fortunately one of our friend is also working in the same domain, so  he suggested one way of getting logs, when the application was crashed on the device. here are the steps.

  1. Connect your device(iPhone) to the System.
  2. Run your application(reproduce the crash scenario)
  3. Go to organizer tab in the XCode IDE
  4. Go to devices tab 
  5. If your device is identified by the system, it will be displayed in this tab list.
  6. Just select your device, you will get the logs.

Happy Coding,
Eminosoft