I started having a bug in my code the other day that only appeared when playing my game on my iPad. When I tried to create a build with the "script debugging" option checked, the app crashes as soon as NGUI is is loaded. I have verified this by completely disabling the UI Root object, and running the build again. Without ngui enabled the app runs fine (although you can't do anything of course). I started going through and re-enabling components one by one. I could get the app to run fine nothing but one sliced sprite on the screen, however as soon as you touch the screen the app crashes. The app starts crashing as soon as I enable just one button in the scene. xcode reports a null reference exception, but no mention of what file or line. When I try to connect the debugger, it just loses the connection and doesn't say where the error occurred.
I am not doing anything crazy with my ui so I am a bit confused. Everything works great when the "script debugging" option is left unchecked. Any ideas?