Looks for the last running simulator container.
The ios version that you are looking for (eg. iOS-9-3)
yes those are dashes instead of dots
The device that you are querying for (eg. iPad-Air-2)
again those are dashes instead of spaces
If you don't specify anything the returned value is just JSON including all relevant paths. Including the root directory
Returns just a string indicating the path to go to for the sqlite database, assuming that you have a sqlite database in the Documents directory.
Returns just a string indicating the path to go to for the log files for your device, again assuming that you have .log files in your Documents directory.