mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Sort .xcdatamodeld files in decreasing order
To set higher version core data model as current
This commit is contained in:
@@ -119,7 +119,7 @@ class SourceGenerator {
|
||||
let models = (try? path.children()) ?? []
|
||||
let modelFileReference = models
|
||||
.filter { $0.extension == "xcdatamodel" }
|
||||
.sorted()
|
||||
.sorted { $0.string.localizedStandardCompare($1.string) == .orderedDescending }
|
||||
.map { path in
|
||||
createObject(
|
||||
id: path.byRemovingBase(path: project.basePath).string,
|
||||
|
||||
Reference in New Issue
Block a user