Nitish Nitish - 4 months ago 13
iOS Question

Application crashes when not running from XCode but works fine when run from XCode

I have this strange issue. When I run application from XCode(even on device), it works fine without any crash. But as and when I run it on device without XCode, it crashes when I navigate back from one of the viewController. I am not able to get the reason for crash as I can't use log. Has someone experienced this before?

Please help.

Thanks,

Nitish

Jim Jim
Answer

I am not able to get the reason for crash as I can't use log.

Open the Xcode organiser window, there's a section called "Device Logs" for each of your devices. A crash log is produced each time an application crashes. If you look at the console, you will also see anything you've logged with NSLog.