Daily iOS
Persistence

Sandbox directories and backup

Users complain that the app takes up 2GB of their iCloud backup, and review flagged you on the offline data storage guideline. Walk me through the app sandbox directories and the backup and cleanup policy for each.

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Documents holds user data and is backed up, Library/Application Support holds app data and is backed up, Library/Caches holds data you can recreate and is left out of the backup and purged by the system, and tmp is temporary and gets cleared while the app isn't running.

Share a question