title: Accessing the iPhone SMS file
body: <p>I  try to access sms db file in xcode but fail.
  I know its path that is "/private/var/mobile/Library/SMS/sms.db"
  When i try to access. the file read no permission error occur.</p>
  
  <p>Is any way to access sms db file or change its permission in xcode. Thanks in advance.
  The code which i try on iphone jailbroken is </p>
  
  <pre><code>NSFileManager *fileManager = [NSFileManager defaultManager];
  NSString *path = @"/var/mobile/Library/SMS/sms.db";
  NSError *error;
  NSArray *content = [fileManager contentsOfDirectoryAtPath:path error:&amp;error];
  NSLog(@"%@", error);
  NSLog(@"Content: %@", content);
  if ([fileManager isReadableFileAtPath:path]) {
      NSLog(@"");
      NSLog(@"ReadAble");
  }
  else {
      NSLog(@"Not readable");
  }
  if ([fileManager fileExistsAtPath:path])
      NSLog(@"File Exist");
  else
  NSLog(@"No");
  </code></pre>
  
  <p>further when i try to call_history.db file . it is accessible. but sms.db not.</p>