From 457d133dceb183d714d09519cc26a39242e02b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20Pelletier?= Date: Tue, 10 Dec 2024 16:39:53 -0500 Subject: [PATCH] Fix xcode project generation for fastbuild targets when a project is only used by some target but not the first one Was previously crashing in BuildArgumentsStringByCommandLineOptions when trying to access FastBuildMasterBffList. --- Sharpmake.Generators/Apple/XCodeProj.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sharpmake.Generators/Apple/XCodeProj.cs b/Sharpmake.Generators/Apple/XCodeProj.cs index 4a09c3968..f87676662 100644 --- a/Sharpmake.Generators/Apple/XCodeProj.cs +++ b/Sharpmake.Generators/Apple/XCodeProj.cs @@ -546,6 +546,12 @@ private void PrepareSections(XCodeGenerationContext context, List conf.FastBuildMasterBffList.Any(), targetConfigurations[0]); + } bool canIncludeSourceFiles = !firstConf.IsFastBuild || firstConf.Output != Project.Configuration.OutputType.AppleApp || !firstConf.XcodeUseNativeProjectForFastBuildApp; if (canIncludeSourceFiles)