title: How to open database sqlite file on iPhone real device?
body: <p>I'm debbuging a app in my real device by cable. I've a iPhone 6. I want check my database and operate with sqlite3 to query my results. The other questions and tutorials explain to do this only in simulator but I'm using a real iPhone.</p>
  
  <p>In AppDelegate, I prints the path of database:</p>
  
  <p><code>print(NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).last! as String)
  /Users/myname/Library/Developer/CoreSimulator/Devices/DAE93E57-7004-45F6-9B93-E79CA1AEEEFA/data/Containers/Data/Application/D7A4F27E-6F11-4941-A1B0-0337ABF788AB/Documents
  </code></p>
  
  <p>So, I take the path and access from terminal and access my database with <code>sqlite3 DatabaseFile</code></p>
  
  <p>But when I debugging in my device, the path that's printed not works. I tried use the printed path
  <code>
  cd /var/mobile/Containers/Data/Application/3257D423-C198-41A5-B29D-B31E99F84F34/Documents
  /usr/bin/CD: line 4: cd: /var/mobile/Containers/Data/Application/3257D423-C198-41A5-B29D-B31E99F84F34/Documents: No such file or directory
  </code></p>
  
  <p>This error happens because this is of iOS system, I think.</p>