Hi, I think I found the answer
let storeDirectory = FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask).first!
let url = storeDirectory.appendingPathComponent("local.sqlite")
let local = NSPersistentStoreDescription(url: url)
...
let cloudUrl = storeDirectory.appendingPathComponent("cloud.sqlite")
let cloud = NSPersistentStoreDescription(url: cloudUrl)
Something to do with the path as I thought.
Changing those lines seams to have made it work.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: