applicationExit not work in XCode Simulator

I am implementing save game state feature for my game, and put the code in applicationExit.

It works fine in Corona Simulator, a json file contains game state would be saved in system.DocumentsDirectory. However no file is saved in XCode Simulator.

Any one have ideas why it doesn’t work when build for device and XCode Simulator? [import]uid: 204352 topic_id: 35027 reply_id: 335027[/import]

Under iOS applications don’t exit by default. They are only exited when someone double-taps on the Home button, presses and holds your app’s icon until a minus-sign badge appears and the icon starts shaking and the user taps the minus-sign badge. This is also true for the XCode simulator. You should probably also save on the suspend event as well as the exit event and other strategic locations during your apps run.
[import]uid: 199310 topic_id: 35027 reply_id: 139258[/import]

Under iOS applications don’t exit by default. They are only exited when someone double-taps on the Home button, presses and holds your app’s icon until a minus-sign badge appears and the icon starts shaking and the user taps the minus-sign badge. This is also true for the XCode simulator. You should probably also save on the suspend event as well as the exit event and other strategic locations during your apps run.
[import]uid: 199310 topic_id: 35027 reply_id: 139258[/import]