How to use iOS crash logs with Corona?

So I’ve been doing some digging but haven’t come up with much.

I’ve got an app that is crashing on a few users devices (iPhone 6s).

A family member is one such user and I was able to copy the crash log from within the Settings app on the device and email it to myself.

The question now is what can I do with this crash dump?  How can I actually relate this to code written in Corona SDK?

Any tips, suggestions would be wonderful.

I have had very little luck with iOS crash reports. The only way I’ve been able to reliably debug from an iOS device is to connect it to a Mac, open the Devices window in Xcode, and read the constant logs that way (click that little arrow to open them). These logs will print “warning” messages, which are the same messages you’d see in the Corona Terminal.

For example:

\<Warning\>: Runtime Error: Runtime error: /Users/your\_directory/your\_script.lua:99: attempt to call field 'init' (a nil value)

:mellow: Yeah I know it’s not great. I wonder if others have ideas. Good luck!

Those crash logs aren’t really that useful for Corona development purposes (unless I suppose your Enterprise-level and have need to deep-dive into intents and things like that), so the option that sirnemo reports is the supported method of debugging on iOS devices.

FWIW I find when I’m getting crashes on only certain devices, it means I’m being to strict in the screen sizes/rendering ratios of my objects. Not saying that is what is wrong with yours, but it’s a good place to start.

Great advice, thank you!

One last follow-up question.  Is there anyway to load the crash file from a device through email to a computer and see it in Xcode (without plugging in the device)?  I’m a bit worried that I need physical access to the specific device.  While I have limited access to the specific iOS device for this error I might not in the future.

 I fear I already know the answer but figured it’s worth asking.

I’ll use this as an opportunity to shamelessly plug my From the Forum series, as I highlighted a nice on-device debugging module not too long ago. With this, your users can report errors remotely. Check it out at the link below:

http://forums.coronalabs.com/topic/50004-corona-advanced-logging/

Just following up here for anyone else that might have troubles.

In xCode6 nothing would show for my iPad console (I knew how to open the console, but nothing was there).  I updated my iOS device and got it working.

I also found this nifty console app that seems to be a bit better at digging through the console:  http://lemonjar.com/iosconsole/

I have had very little luck with iOS crash reports. The only way I’ve been able to reliably debug from an iOS device is to connect it to a Mac, open the Devices window in Xcode, and read the constant logs that way (click that little arrow to open them). These logs will print “warning” messages, which are the same messages you’d see in the Corona Terminal.

For example:

\<Warning\>: Runtime Error: Runtime error: /Users/your\_directory/your\_script.lua:99: attempt to call field 'init' (a nil value)

:mellow: Yeah I know it’s not great. I wonder if others have ideas. Good luck!

Those crash logs aren’t really that useful for Corona development purposes (unless I suppose your Enterprise-level and have need to deep-dive into intents and things like that), so the option that sirnemo reports is the supported method of debugging on iOS devices.

FWIW I find when I’m getting crashes on only certain devices, it means I’m being to strict in the screen sizes/rendering ratios of my objects. Not saying that is what is wrong with yours, but it’s a good place to start.

Great advice, thank you!

One last follow-up question.  Is there anyway to load the crash file from a device through email to a computer and see it in Xcode (without plugging in the device)?  I’m a bit worried that I need physical access to the specific device.  While I have limited access to the specific iOS device for this error I might not in the future.

 I fear I already know the answer but figured it’s worth asking.

I’ll use this as an opportunity to shamelessly plug my From the Forum series, as I highlighted a nice on-device debugging module not too long ago. With this, your users can report errors remotely. Check it out at the link below:

http://forums.coronalabs.com/topic/50004-corona-advanced-logging/

Just following up here for anyone else that might have troubles.

In xCode6 nothing would show for my iPad console (I knew how to open the console, but nothing was there).  I updated my iOS device and got it working.

I also found this nifty console app that seems to be a bit better at digging through the console:  http://lemonjar.com/iosconsole/