It seems in iOS 4, because your app goes into the background, it remembers where you last were. When I quit my app by pressing home, and then click on it again in the simulator shortly after, it remembers where it was and AFAIK it is working.
When I kill the app by double tapping home, holding the icon of my app in the bottom, pressing the delete key, then clicking on the normal icon to start the app, the app immediately crashes. I get:
Thread 1: Program received signal: "SIGKILL".
at the line
int retVal = UIApplicationMain(argc, argv, nil, nil);
The console just says:
[Switching to process 46794 thread 0x207]
sharedlibrary apply-load-rules all
Current language: auto; currently objective-c
I’m not sure where to go to start debugging this. Thanks!
In my not so bast experience the simulator and XCode don’t have great communication. The console does get all the outputs it should when you’re running but once you switch to another App, close it, or whatever, nothing will work as expected.
When I run the an up from Xcode into a real iPhone, if you close it, Xcode will still lets you STOP it.
If the app actually crashes you should look into the crash logs.
You should also try using Instruments