crash on restore - deny file-write-create

I get a crash when returning to my app from the iphone menu screen. I would like to get it fixed asap as it’s a terrible user experience.

The steps to reproduce are:

  1. Start the app
  2. Hit the iphone menu button
  3. Return to the running instance of the app

What Happens:
It starts to open but quickly crashes out.

What Should Happen:
It should just restore the app
These are the errors I get:
Jul 24 14:15:50 unknown sandboxd[11554] : MyAppName(11550) deny file-write-create /Applications/.dat2d1e.01f
Jul 24 14:15:51 unknown sandboxd[11554] : MyAppName(11550) deny file-write-create /Applications/.dat2d1e.021
Jul 24 14:15:51 unknown MobileStorageMounter[11549] : (0x3f05748c) idle_timer_callback: Exiting after idle timeout
Jul 24 14:15:57 unknown sandboxd[11554] : MyAppName(11550) deny file-write-create /Applications/.dat2d1e.025
Jul 24 14:15:57 unknown sandboxd[11554] : MyAppName(11550) deny file-write-create /Applications/.dat2d1e.026

Some things to note:
o) I don’t have any code that handles going into or returning from a suspended state etc.
o) It returns to the app correctly when the screen locks and I unlock it
o) My app does a fair bit of network downloading and loading json files but I believe there shouldn’t be any resources which are held
o) Sometimes instead of crashing out it just reloads the app again from scratch
Has anyone had this happen to them before?

Thanks in advance,
Scott. [import]uid: 51622 topic_id: 12822 reply_id: 312822[/import]

So you don’t have ANY settings in build.settings for exit on suspend? If I read that correctly then you may want to change that; it could be causing issues :wink: [import]uid: 52491 topic_id: 12822 reply_id: 47062[/import]

Yep you got it.

I added the configuration UIApplicationExitsOnSuspend = false and now its all working as expected. Thank you v. much.

After making a purchase my app downloads files. When you exit from the app (while it is now still running) it stops all the downloads. Are there any other configuration changes that will allow it to continue downloading when it is suspended but still running. [import]uid: 51622 topic_id: 12822 reply_id: 47088[/import]

I don’t believe you can when it is suspended, no - however if there is a way you’re more likely to get an answer in the in app purchases sub forum. [import]uid: 52491 topic_id: 12822 reply_id: 47154[/import]