I know this thread is a bit old, but I thought I would resurrect it. I also 
just submitted my app to the app store, and was rejected for the same 
reason. The app comes with a couple of databases, and on launch uses the 
CBLManager move mechanism and places those databases in the Application 
Support directory where all the CBL databases are. I store no data in my 
Documents directory during the lifetime of the app. Did anyone else have 
this problem? Did you resolve it via the code in this old thread, or some 
other mechanism?

Any help would be greatly appreciated!

On Tuesday, June 11, 2013 11:24:51 PM UTC-7, Mike Platt wrote:
>
> An update for my app running CBL just got rejected from the store for the 
> following reason:
>
> "In particular, we found that on launch and/or content download, your app 
> stores 12.08 MB. To check how much data your app is storing:
>
> - Install and launch your app
> - Go to Settings > iCloud > Storage & Backup > Manage Storage 
> - If necessary, tap "Show all apps" 
> - Check your app's storage
>
> The iOS Data Storage Guidelines indicate that only content that the user 
> creates using your app, e.g., documents, new files, edits, etc., should be 
> backed up by iCloud. "
>
> The following code is the Apple suggestion as to how to stop data being 
> included in the iCloud Backup...
>
> - (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL
> {
>     assert([[NSFileManager defaultManager] fileExistsAtPath: [URL path]]);
>  
>     NSError *error = nil;
>     BOOL success = [URL setResourceValue: [NSNumber numberWithBool: YES]
>                                   forKey: NSURLIsExcludedFromBackupKey 
> error: &error];
>     if(!success){
>         NSLog(@"Error excluding %@ from backup %@", [URL 
> lastPathComponent], error);
>     }
>     return success;
> }
>
> Firstly has anyone else had this problem?
>
> Secondly has anyone implemented this code on CDL databases? (I am not sure 
> where to point the URL).
>
> Thanks in advance.
>
> Mike
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/54ba2bc6-b679-4d9e-9ab1-0da3973f139f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to