GDB: Program received signal: "EXC_BAD_ACCESS"...you know that there is most likely a memory leak somewhere. Your code just tried to access something, which was supposed to be there, which used to be there, which is going to be there, which should have been there - but right now is missing.
Open debugger (Command-Shift-Y) and check the traceback. If you're lucky, there might be a line or few from your code. Most likely you'll just see system calls without a clue which part of your app might be related to the crash. You're facing hours of more or less random debugging, adding NSLog() calls and breakpoints trying to isolate the location of actual crash.
Don't worry, there is an easier way: Guard Malloc! Special version of memory allocation library, fine-tuned to help debugging memory issues. Sounds scary, but it's so easy that you have no excuses to avoid it:
- It's build-in, no need to install anything
- Activate via menus (on - off)
- Just use your application, no changes there
- Check results from debugger, no changes there
Please note that you might want to disable Guard Malloc, when you're not debugging leaks. It's a bit slower than normal iOS simulator, even though if you have any background with mobile java or Symbian development, you might not notice too much a difference. Qt developers and iPhone developers will notice the speed bumb right away.