MonoTouch crash logs
I'm trying to ensure that the release build of my MonoTouch app will produce crash logs that I can use, but I'm unable to get any crash logs from the device. Here are the steps I'm taking.
I put some code in my app that would force it to crash when the user touches the screen.
I did a release build and verified that the .dSYM folder is next to the .app folder.
I ran the app on my iPad and touched the screen to make it crash. The app exited instantly.
I di开发者_StackOverflow中文版d a Sync in iTunes.
I looked under Library\Logs\CrashReporter\MobileDevice[devicename] and [devicename].symbolicated, but there is nothing under there.
I've tried two methods of making the app crash. First way:
SomeObject x = null;
x.SomeFunction();
Second way:
unsafe {
short *p = (short*)0;
for ( int i=0; i < 1000000; i++ )
p[i] = 0;
}
Both methods cause the app to exit instantly, but neither is producing a crash log.
What am I missing here?
It appears that unhandled managed exceptions do not generate a crash log. Could you please file a bug at http://monotouch.net/Support so we can track and fix this issue?
In the mean time you could wrap your Main call in
try {
} catch {}
and log it somewhere and upload it to a web server you have or some such.
精彩评论