Skip to content

Commit bb02e01

Browse files
committed
Fixed logic related to order of elements in localization directory Path array
1 parent bad37c9 commit bb02e01

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/XcodeGenKit/PBXVariantGroupGenerator.swift

+7
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ class PBXVariantGroupGenerator: TargetSourceFilterable {
7777

7878
let localizeDirs: [Path] = children
7979
.filter ({ $0.extension == "lproj" })
80+
.reduce(into: [Path]()) { partialResult, path in
81+
if path.lastComponentWithoutExtension == "Base" {
82+
partialResult.append(path)
83+
} else {
84+
partialResult.insert(path, at: 0)
85+
}
86+
}
8087

8188
guard localizeDirs.count > 0 else {
8289
return

0 commit comments

Comments
 (0)