Reputation: 141
I submitted my app update for approval to the App Store, and apparently I'm storing 6.47 MB on the user's iCloud.
I have no idea what this could come from, so I could use some help.
Here's the message I received from Apple: From Apple 0. 3.0 BEFORE YOU SUBMIT: ICLOUD Before you Submit
On launch and content download, your app stores 6.47MB on the user's iCloud, which does not comply with the iOS Data Storage Guidelines.
The iCloud attributes on my app are: key-value storage and CloudKit. I use CloudKit to store App information and download it from the cloud upon launch. I save information locally, I'm pretty sure.
Any suggestions on what this could come from?
Here's my save function:
func saveFacts() {
let isSuccessfulSave = NSKeyedArchiver.archiveRootObject(birdFacts, toFile: BirdFact.ArchiveURL.path!)
if !isSuccessfulSave {
print("Failed to save bird facts")
}
else {
print("saved bird facts")
}
}
Upvotes: 1
Views: 689
Reputation: 4516
If you are storing information in local files they may be subject to backup to the user's iCloud, which could be the source.
You can avoid them being backed-up by moving them to a different location in the sandbox or using the NSURLIsExcludedFromBackupKey attribute.
See Make App Backups More Efficient (Apple).
For example code in Objectice C and Swift using NSURLIsExcludedFromBackupKey see How do I prevent files from being backed up to iCloud and iTunes?(Apple)
Upvotes: 1