My app got rejected due to not follow iOS App Data Storage Guidelines. My binary was rejected by the Apple App Store Review Team.
On launch and content download, your app stores 6.34MB on the user's iCloud, which does not comply with the iOS Data Storage Guidelines.
Next Steps
Please verify that only the content that the user creates using your app, e.g., documents, new files, edits, etc. is backed up by iCloud as required by the iOS Data Storage Guidelines. Also, check that any temporary files used by your app are only stored in the /tmp directory; please remember to remove or delete the files stored in this location when it is determined they are no longer needed.
Data that can be recreated but must persist for proper functioning of your app - or because users expect it to be available for offline use - should be marked with the "do not back up" attribute. For NSURL objects, add the NSURLIsExcludedFromBackupKey attribute to prevent the corresponding file from being backed up. For CFURLRef objects, use the corresponding kCRUFLIsExcludedFromBackupKey attribute.
What should I do?
iOS Data Storage Guidelines quick guide
A lot of people are having this problem and often it seems that the review team is automatically claiming that your app does not follow the iOS Storage Guidelines. Either way you need to document where your app store data and what data is stored where. Here's a quick guide that should get you started.
Your app can store files in either /Documents, /Library or /tmp.
Documents/
Library/
tmp/
But how do I find out where my files are stored?
Put the script bellow in func application:didFinishLaunchingWithOptions in your appDelegate file. NSSearchPathDirectory is an enum and represents different folder/locations. Some of them are these.
Change the NSSearhPathDirectory(.DocumentDirectory) to desired locations and check what files you are storing there.
My app does not save anything
Lucky you...Write a document to the Apple review team and document your app use of storage. Take screenshots from the logs made out from the script above.
My app saves a lot of user created data
If your app saves a user's data to Documents/ that is fine and write a document documenting that this is made by the user and do follow the iOS Data Storage Guidelines.
If your app downloads data and saves it to the wrong location
Simply follow the iOS Data Storage Guidelines and submit a new binary.
I have files in Documents/ or Library/, but I don't want to back them up
I've created a quick script to handle files that you don't want to backup.
If you believe your app's rejection is false write the review team back and explain the situation and your use of storage
Simple guidelines
Resources:
iOS Data Storage Guidelines - Apple Developer
iCloud Programming Guide for Core Data
File System Programming Guide