-
-
Notifications
You must be signed in to change notification settings - Fork 258
Open
Description
I tried to print model schema from data stack
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
Metadata
Metadata
Assignees
Labels
No labels