mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Merge pull request #142 from bkase/fix-duplicate-sources
Fix duplicate sources in groups, fixes #141
This commit is contained in:
@@ -180,7 +180,6 @@
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
FR8488480101 /* MoreUnder.swift */,
|
||||
FR8488480101 /* MoreUnder.swift */,
|
||||
);
|
||||
name = UnderFileGroup;
|
||||
path = UnderFileGroup;
|
||||
@@ -192,15 +191,6 @@
|
||||
FR7078510801 /* FrameworkFile.swift */,
|
||||
FR1345298503 /* Info.plist */,
|
||||
FR7740960501 /* MyFramework.h */,
|
||||
FR7078510801 /* FrameworkFile.swift */,
|
||||
FR1345298503 /* Info.plist */,
|
||||
FR7740960501 /* MyFramework.h */,
|
||||
FR7078510801 /* FrameworkFile.swift */,
|
||||
FR1345298503 /* Info.plist */,
|
||||
FR7740960501 /* MyFramework.h */,
|
||||
FR7078510801 /* FrameworkFile.swift */,
|
||||
FR1345298503 /* Info.plist */,
|
||||
FR7740960501 /* MyFramework.h */,
|
||||
);
|
||||
name = Framework;
|
||||
path = Framework;
|
||||
|
||||
@@ -504,7 +504,8 @@ public class PBXProjGenerator {
|
||||
func getSingleGroup(path: Path, mergingChildren children: [String], depth: Int = 0) -> PBXGroup {
|
||||
let group: PBXGroup
|
||||
if let cachedGroup = groupsByPath[path] {
|
||||
cachedGroup.children += children
|
||||
// only add the children, that aren't already in the cachedGroup
|
||||
cachedGroup.children += children.filter{ !cachedGroup.children.contains($0) }
|
||||
group = cachedGroup
|
||||
} else {
|
||||
group = PBXGroup(
|
||||
|
||||
Reference in New Issue
Block a user