From b1e03f0f4635bce6f7922bf7cf2ad4921f02d211 Mon Sep 17 00:00:00 2001 From: Steven Sheldon Date: Sun, 16 Feb 2025 21:01:59 -0800 Subject: [PATCH] Fix checking optional group existence relative to the working dir (#1529) --- 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 7ed90b3d..0b8f93b7 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 [] }