I've read many post on how to locate the data store, but am still unable to find it.
I'm printing the location of the Container when I create my Persistent Container:
lazy var persistentContainer: NSPersistentContainer = {
let container = NSPersistentContainer(name: "DataModel")
container.loadPersistentStores(completionHandler: {
storeDescription, error in
if let error = error {
fatalError("Could load data store: \(error)")
}
})
print(container.persistentStoreDescriptions)**
return container
}()
The output is as follows:
[<NSPersistentStoreDescription: 0x174245190> (type: SQLite, url: file:///var/mobile/Containers/Data/Application/CF77409C-0CD7-4F4F-B657-831E4FA4544B/Library/Application%20Support/DataModel.sqlite)]
I find the Mac file system very confusing. When I go to finder and select Go -> Go to folder... What do I paste as the path?
Thanks.