You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let dataStack: DataStack
private init() {
dataStack = DataStack(
xcodeModelName: "MyModel",
bundle: Bundle.main,
migrationChain: ["MyModel", "MyModel1"]
)
}
func initializeCachingEngine() {
do {
let store = try dataStack.addStorageAndWait(SQLiteStore(fileName: "MyModel.sqlite", localStorageOptions: .allowSynchronousLightweightMigration))
print("File URL : \(store.fileURL)")
let schema = dataStack.modelSchema.printCoreStoreSchema()
print(" SCHEMA : \(schema)")
} catch { print("ERROR: \(error.localizedDescription)") }
}
On line let schema = dataStack.modelSchema.printCoreStoreSchema()
It crashed because In one of the entities in my xcdatamodel file had an attribute with URI type
The text was updated successfully, but these errors were encountered:
I tried to print model schema from data stack
On line
let schema = dataStack.modelSchema.printCoreStoreSchema()
It crashed because In one of the entities in my xcdatamodel file had an attribute with URI type
The text was updated successfully, but these errors were encountered: