From 2f9e5db89f2e278b108014ec0093296bc1d9d9bb Mon Sep 17 00:00:00 2001 From: John Rommel Estropia Date: Sun, 16 Oct 2016 14:40:25 +0900 Subject: [PATCH] Added comment (fixes #106) --- Sources/Internal/NSManagedObjectModel+Setup.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Internal/NSManagedObjectModel+Setup.swift b/Sources/Internal/NSManagedObjectModel+Setup.swift index d0c31e8..0d3c686 100644 --- a/Sources/Internal/NSManagedObjectModel+Setup.swift +++ b/Sources/Internal/NSManagedObjectModel+Setup.swift @@ -38,6 +38,7 @@ internal extension NSManagedObjectModel { guard let modelFilePath = bundle.path(forResource: modelName, ofType: "momd") else { + // For users migrating from very old Xcode versions: Old xcdatamodel files are not contained inside xcdatamodeld (with a "d"), and will thus fail this check. If that was the case, create a new xcdatamodeld file and copy all contents into the new model. CoreStore.abort("Could not find \"\(modelName).momd\" from the bundle. \(bundle)") }