Apéndice: migraciones en iOS<=9
The model used to open the store is incompatible with the one used to create the store//ESTO SE AÑADE
let opciones = [
NSInferMappingModelAutomaticallyOption : true,
NSMigratePersistentStoresAutomaticallyOption : true
]
//ESTO YA ESTABA, pero antes con el options a nil
do {
try coordinator.addPersistentStore(ofType: NSSQLiteStoreType, configurationName: nil, at: url, options: opciones)
} catch {Last updated
Was this helpful?