Fix wrong $S(BuildDir) in UPL when using modern xcode

#jira UE-223481
#rb Josh.Adams
#rnx

[CL 36756317 by calvin zheng in 5.5 branch]
This commit is contained in:
calvin zheng
2024-10-01 19:20:25 -04:00
parent 5e1ec9b585
commit b2e3a55518
@@ -1388,7 +1388,7 @@ public class IOSPlatform : ApplePlatform
(SC.IsCodeBasedProject ? TargetName : "UnrealGame"),
SC.IsCodeBasedProject ? false : Params.Client, // Code based projects will have Client in their executable name already
SC.ShortProjectName, DirectoryReference.Combine(SC.LocalRoot, "Engine"),
DirectoryReference.Combine((SC.IsCodeBasedProject ? SC.ProjectRoot : DirectoryReference.Combine(SC.LocalRoot, "Engine")), "Binaries", PlatformName, "Payload", (SC.IsCodeBasedProject ? SC.ShortProjectName : "UnrealGame") + ".app"),
DirectoryReference.Combine((SC.IsCodeBasedProject ? SC.ProjectRoot : DirectoryReference.Combine(SC.LocalRoot, "Engine")), "Binaries", PlatformName, AppleExports.UseModernXcode(SC.RawProjectPath) ? "" : "Payload", (SC.IsCodeBasedProject ? SC.ShortProjectName : "UnrealGame") + ".app"),
SC.StageExecutables[0]);
if (!AppleExports.UseModernXcode(SC.RawProjectPath))