Is there a way in XCode4 / iPhone Simulator to see logging coming from the application after you have stopped and re-started the app on the simulator?
That is:
- start app on simulator in debug mode (logging appears in XCode4 fine)
- push menu button on simulator
- go to app menu on the simulator and press the icon for the application
- application starts again, but no logging to be seen in XCode4??
thanks
When you press the Home Button, the app is just suspend in the background. If you mark any section of code with beginBackgroundTaskWithExpirationHandler:, it will complete before suspending. When you launch the app again from the Springboard, Xcode is still connected to the same process. Make sure you don’t stop the debugger when press the Home button.
Check you Info.plist for the following key: UIApplicationExitsOnSuspend. For additional information search for section Opting Out of Background Execution in The Core Application Design doc. If the UIApplicationExitsOnSuspend is set to YES, your app will terminate.