Protect the store file with iOS security features.
This commit is contained in:
		@@ -422,6 +422,11 @@
 | 
			
		||||
        @throw [NSException exceptionWithName:error.domain reason:error.localizedDescription
 | 
			
		||||
                                     userInfo:[NSDictionary dictionaryWithObject:error forKey:@"cause"]];
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    if (![[NSFileManager defaultManager] setAttributes:[NSDictionary dictionaryWithObject:NSFileProtectionComplete
 | 
			
		||||
                                                                                   forKey:NSFileProtectionKey]
 | 
			
		||||
                                          ofItemAtPath:storeURL.path error:&error])
 | 
			
		||||
        err(@"Unresolved error %@, %@", error, [error userInfo]);
 | 
			
		||||
    [__persistentStoreCoordinator unlock];
 | 
			
		||||
    
 | 
			
		||||
    return __persistentStoreCoordinator;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user