In general, the system will not update your app’s container while the app is running (and that includes being suspended in the background). If the system needs to do something to your container — for example, recovering space by nixing the caches directory — it’ll terminate your app first. There are exceptions to this general rule. The one that springs to mind is the Documents directory. If the app chooses to make this visible to the user, it need to use file coordination to avoid the sorts of problems you’re talking about. There’s also the iOS Apps on Mac feature, which lets your app run on a much less constrained platform. Finally, for SQLite specifically, you have to worry about 0xdead10cc “dead lock” terminations. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic:
App & System Services
SubTopic:
Core OS
Tags: