Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/XcodeGenKit/PBXProjGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ public class PBXProjGenerator {
}

// add fileSystemSynchronizedGroups
let synchronizedRootGroups = sourceFiles.compactMap { $0.synchronizedRootGroup }
let synchronizedRootGroups = sourceFiles.compactMap { $0.fileReference as? PBXFileSystemSynchronizedRootGroup }
if !synchronizedRootGroups.isEmpty {
targetObject.fileSystemSynchronizedGroups = synchronizedRootGroups
}
Expand Down
4 changes: 1 addition & 3 deletions Sources/XcodeGenKit/SourceGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ struct SourceFile {
let fileReference: PBXFileElement
let buildFile: PBXBuildFile
let buildPhase: BuildPhaseSpec?
var synchronizedRootGroup: PBXFileSystemSynchronizedRootGroup?
}

class SourceGenerator {
Expand Down Expand Up @@ -706,14 +705,13 @@ class SourceGenerator {
// TODO: adjust if hasCustomParent == true
rootGroups.insert(syncedRootGroup)

var sourceFile = generateSourceFile(
let sourceFile = generateSourceFile(
targetType: targetType,
targetSource: targetSource,
path: path,
fileReference: syncedRootGroup,
buildPhases: buildPhases
)
sourceFile.synchronizedRootGroup = syncedRootGroup
sourceFiles.append(sourceFile)
}

Expand Down