From 01274a819d8a7c769a0f251682399fb53ae9f66e Mon Sep 17 00:00:00 2001 From: Steven Sheldon Date: Thu, 16 Jan 2025 13:07:56 -0800 Subject: [PATCH] Fix checking optional group existence relative to the working dir --- Sources/XcodeGenKit/SourceGenerator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/XcodeGenKit/SourceGenerator.swift b/Sources/XcodeGenKit/SourceGenerator.swift index 7ed90b3d6..0b8f93b70 100644 --- a/Sources/XcodeGenKit/SourceGenerator.swift +++ b/Sources/XcodeGenKit/SourceGenerator.swift @@ -664,7 +664,7 @@ class SourceGenerator { sourceFiles.append(sourceFile) case .group: - if targetSource.optional && !Path(targetSource.path).exists { + if targetSource.optional && !path.exists { // This group is missing, so if's optional just return an empty array return [] }