Seems this was easier than first thought
In core.m add a method as below:
- (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;
}
which is the suggested code from Apples tech doc link above post
Then add this:
NSString *docsDir;
NSArray *dirPaths;
NSURL * finalURL;
dirPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
docsDir = [dirPaths objectAtIndex:0];
finalURL = [NSURL fileURLWithPath:docsDir];
[self addSkipBackupAttributeToItemAtURL:finalURL];
...into the method "(BOOL)application
UIApplication *)application didFinishLaunchingWithOptions
NSDictionary *)launchOptions"
The result will be none of your Documents directly is flagged to be backed up in iCloud
I'm pretty sure this will work (can see it does on the device) but not sure if this is enough to now get through the review
Happy
Cheers
LittlePIC