How to manually access Core Date / SQLite file in Xcode 6/IOS 8 Swift Programming

published on
This is very easy. Just open
In the delegate try to find the  method called
var applicationDocumentsDirectory: NSURL {
Add a println for the URL
// Returns the URL to the application's Documents directory.

    var applicationDocumentsDirectory: NSURL {
        let urls = NSFileManager.defaultManager().URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask)

        return urls[urls.count-1] as NSURL


Now each time you use the Core Data framework you should be able to see the path in your console. Something like this should be printed on your console.


The reason you can see the path in this way is because the manageContextObject method uses the above method to generate/access the SQLite file