My app crashes when I quit it(not press home button and go to background), I guess the problem is that some objects released in viewDidUnload, are released again in dealloc, but I'm not sure. As my code has more than 10000 lines, is there any tool or method so I can quickly pinpoint the bug? Or is it caused by something else rather than one object being released twice?

Thanks!

Here is a screenshot of left pane:

![When crashes](https://i.stack.imgur.com/00rHZ.png)

Also, I tried to log messages in viewDidUnload and dealloc, but did not see any error message.

```
- (void)viewDidUnload {
    print "viewDidUnload 1";
    // actual method body
    print "viewDidUnload 2";
}

```

the same for dealloc.

Edit 2:
My app uses Core Data, so is there anything I need to manually finalize on exit for Core Data(or it will crash)?