I don't want to use iCloud and my last release was flagged by Apple as using it, even thought I never setup anything. All of my provisioning has the check box off for iCloud. I didn't add any entitlements.
- (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL
const char* filePath = [[URL path] fileSystemRepresentation];
const char* attrName = "com.apple.MobileBackup";
u_int8_t attrValue = 1;
int result = setxattr(filePath, attrName, &attrValue, sizeof(attrValue), 0, 0);
return result == 0;
Set your file path in filePath String.
NSURL *filePathURL = [[NSURL alloc] initFileURLWithPath:filePath]; [self addSkipBackupAttributeToItemAtURL:filePathURL];