app crashes in non-debug environment
Has anyone else had this issue?
My app runs absolutely smooth as butter when I'm running it in debug mode. Even if I run it on my phone after unplugging it, it runs great when compiled in debug mode.
But when I compile it for distribution, then run it (ad-hoc or app store), then it hangs and runs out of memory eventually. Of course, since I can't debug I don't know what the hell is going on.
My app runs absolutely smooth as butter when I'm running it in debug mode. Even if I run it on my phone after unplugging it, it runs great when compiled in debug mode.
But when I compile it for distribution, then run it (ad-hoc or app store), then it hangs and runs out of memory eventually. Of course, since I can't debug I don't know what the hell is going on.
I solved my own problem. As it turns out, my code did have some issues, but for some reason debug mode is a lot more forgiving of nil objects than distribution modes. Since debugging was out of the question, I had to narrow it down by commenting chunks of code until I found what was causing the hang, each time copying the ad-hoc version to my device. I found that if you set Xcode to your test distribution profile and your device, then "Build and Run", it will put it on your device and launch it, then quit because the debugger won't work. However, you can re-launch it manually on your device and it is the ad-hoc version. Much easier than using iTunes to sync it up every time you compile.
I really wish Apple would make debug mode consistent with distribution modes when it comes to handling nil objects.
I really wish Apple would make debug mode consistent with distribution modes when it comes to handling nil objects.
It is consistent with handling nil objects.
What you probably did, from the description, is that you used unitialized memory. Running in the debugger, memory allocations are zeroed, but not when running the app stand-alone.
What you probably did, from the description, is that you used unitialized memory. Running in the debugger, memory allocations are zeroed, but not when running the app stand-alone.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Game that helps the environment and animals | GreenPleco | 1 | 2,185 |
Oct 11, 2011 05:02 PM Last Post: PowerMacX |
|
| Changing Configuration from "Debug" to "Release" causes Graphics Bugs | Bersaelor | 6 | 3,553 |
Jun 28, 2010 06:30 AM Last Post: Skorche |
|
| adhoc different then device debug? | kendric | 8 | 4,368 |
Jan 15, 2010 11:42 AM Last Post: kendric |
|
| 3.0 crashes | kendric | 8 | 5,139 |
Jul 20, 2009 10:00 PM Last Post: kendric |
|
| What environment should I use to make iPhone game | yamanksm | 4 | 4,073 |
Apr 24, 2009 10:52 AM Last Post: kendric |
|

