Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to Encrypt the Data in CoreData (ios)?
    text
    copied!<p>So i have been playing around with CoreData , trying to encrypt the SQL lit using some online tutorial by Nick Harris <a href="https://nickharris.wordpress.com/2010/07/14/core-data-and-enterprise-iphone-applications-protecting-your-data/" rel="nofollow">Click Here</a></p> <p>I was performing the same exact steps that was suggested in the tuorial </p> <pre><code> NSString *storePath =[NSString stringWithFormat:@"%@",storeURL]; NSString *storePath1 = [storePath stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSLog(@"%@",storePath); NSDictionary *fileAttributes = [NSDictionary dictionaryWithObject:NSFileProtectionComplete forKey:NSFileProtectionKey]; if (![[NSFileManager defaultManager] setAttributes:fileAttributes ofItemAtPath:storePath error:&amp;error]) { NSLog(@"%@",error.description); } </code></pre> <p>When im running on simulator im not getting any error , for the fileprotection but when im debugging on physical device im getting an error code=260</p> <p>Here is the Error</p> <pre><code>2013-05-06 16:18:12.577 MQIRApp[11248:907] file://localhost/var/mobile/Applications/11CB4293-000B-4D62-A25C-797AD2C7356C/Documents/MQIRApp.sqlite 2013-05-06 16:18:18.600 MQIRApp[11248:907] Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260.)" UserInfo=0x1625e0 {NSFilePath=file://localhost/var/mobile/Applications/11CB4293-000B-4D62-A25C-797AD2C7356C/Documents/MQIRApp.sqlite, NSUnderlyingError=0x160ae0 "The operation couldn’t be completed. No such file or directory"} </code></pre> <p>Can Some One help me out</p> <p>Thanks Dheeraj</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload