I see it's apparently possible to submit apps without Lion installed, but my app downloads some large files, which need to be saved according to Apple storage guidelines.
Including the code below, I can't even compile due to Use of undeclared identifier 'NSURLIsExcludedFromBackupKey'
:
-(BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL{
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"5.1")) {
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;
}
}
How can I keep using this code while I've only got iOS 5.0 SDK in xcode?
(or is my desire moot because I literally cannot tell my app it supports iOS 5.1?)
- (
SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO
comes from https://stackoverflow.com/a/5337804/194309)