diff --git a/Sources/DataStack+Migration.swift b/Sources/DataStack+Migration.swift index 292bdb1..f723670 100644 --- a/Sources/DataStack+Migration.swift +++ b/Sources/DataStack+Migration.swift @@ -714,6 +714,7 @@ public extension DataStack { } timerQueue.async(execute: recursiveCheck) + _ = try storage.cs_finalizeStorageAndWait(soureModelHint: sourceModel) _ = try withExtendedLifetime(NSPersistentStoreCoordinator(managedObjectModel: destinationModel)) { (coordinator: NSPersistentStoreCoordinator) in try coordinator.addPersistentStoreSynchronously(