-3

When i submit my iOS app i got following rejection issues from apple.

On launch and content download, your app stores 13.14MB 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.

janmejay
  • 35
  • 6

2 Answers2

0

Your App stores data in the users iCloud. This is only alowed to a certain degree. The 13,14 MB your app stores to the cloud is just too much. I never submitted an app to Apple, but the error message is clear and defined.

Take a look on your app and what it does store in the iCloud. Reduce the size or just dont write to iCloud.

Hope it helps...

*edit

Why would one write to the iCloud anyways? Just write on the phone memory.

Reaper
  • 740
  • 1
  • 7
  • 18
0

Do you call a web service on App launch which stores data in the App's documents directory? Or do you store some other data in the App's documents directory?

By default all the data in the App's documents directory is synced to iCloud. So any data that can be recreated later (unlike session data) must not be stored on the documents directory.

So instead save data in the App's Temp directory. To do that have a look at this- How to save images and recoded files in temp directory?

Another option is you have is How to use addSkipBackupAttributeToItemAtURL API?

Community
  • 1
  • 1
7vikram7
  • 2,764
  • 1
  • 25
  • 43
  • I only save image in camera roll. – janmejay Jul 20 '16 at 07:29
  • You can check the size of the data your app is saving to iCloud by going to device settings-> iCloud – 7vikram7 Jul 20 '16 at 07:47
  • Alternatively, you can programmatically, get the size http://stackoverflow.com/questions/19239424/how-to-get-file-size-of-file-from-iphone-documents-folder – 7vikram7 Jul 20 '16 at 07:47
  • There is no matter of size. I only save image in camera role using uiactivityviewcontroller and image size is appx 200 kb . Don't know why getting the rejection from apple. – janmejay Jul 20 '16 at 10:34