According to the articles I have read the correct way to enable core data light weight migrations is by passing options to addPersistentStoreWithType:
addPersistentStoreWithType
In my case I make append to new description instead of replacement
let description = NSPersistentStoreDescription() description.shouldInferMappingModelAutomatically = true description.shouldMigrateStoreAutomatically = true container.persistentStoreDescriptions.append(description)