Mac Remote build failed because UBT delete all files in /Engine/Programs/

This remote build pipeline works fine until I upgrade MacOS to 15.41 and Xcode to 16.3.

After this upgrade, when I use Windows to do Mac remote build for ios pak, The UBT will delete all files in /Engine/Programs/ of loacl Windows device, and then report compile error.

I have done some tests, and this happened for offical UE5.4.4 projects and our project.

Logs

UATHelper: Packaging (IOS): receiving file list ... done UATHelper: Packaging (IOS): deleting Programs/ZenDashboard/Config/DefaultEngine.ini ... UATHelper: Packaging (IOS): deleting Programs/AutoRTFMTests/AutoRTFMTests.uproject UATHelper: Packaging (IOS): deleting Programs/AutoRTFMTests/ UATHelper: Packaging (IOS): Programs/AutomationTool/Saved/Logs/UBA-XXX-IOS-Development_Remote.txt UATHelper: Packaging (IOS): sent 42 bytes received 245,294 bytes 163,557.33 bytes/sec UATHelper: Packaging (IOS): total size is 244,686 speedup is 1.00 UATHelper: Packaging (IOS): receiving file list ... done UATHelper: Packaging (IOS): Binaries/IOS/XXX.stub UATHelper: Packaging (IOS): Binaries/IOS/XXX.target UATHelper: Packaging (IOS): sent 160,826 bytes received 3,796,774 bytes 1,583,040.00 bytes/sec UATHelper: Packaging (IOS): total size is 1,001,661,655 speedup is 253.10 UATHelper: Packaging (IOS): [Remote] Current Package Area: UATHelper: Packaging (IOS): [Remote] TargetDesc Current Package Area: UATHelper: Packaging (IOS): [SSH] "F:\P4\XXX\UnrealEngine\Engine\Extras\ThirdPartyNotUE\cwrsync\bin\ssh.exe" -o BatchMode=yes -i '/cygdrive/F/P4/XXX/UnrealEngine/Engine/Build/SSHKeys/RemoteToolChainPrivate.key' -p 22 "XXX@XXX" (test -f ~/.zshrc || touch ~/.zshrc) && source ~/.zshrc && cd /Users/XXX/UE5/Builds/x7-XXX/F/P4/XXX/UnrealEngine && [ -d /Users/XXX/UE5/Builds/XXX/F/P4/XXX/XXX/Intermediate/IOS/FrameworkAssets ] UATHelper: Packaging (IOS): [Remote] Downloading F:\P4\XXX\XXX\Intermediate\IOS\FrameworkAssets UATHelper: Packaging (IOS): receiving file list ... done UATHelper: Packaging (IOS): sent 20 bytes received 55 bytes 150.00 bytes/sec UATHelper: Packaging (IOS): total size is 0 speedup is 0.00 UATHelper: Packaging (IOS): [Remote] Writing F:\P4\XXX\UnrealEngine\Engine\Intermediate\Build\Manifest.xml UATHelper: Packaging (IOS): Total execution time: 118.45 seconds UATHelper: Packaging (IOS): Took 118.54s to run dotnet.exe, ExitCode=0 UATHelper: Packaging (IOS): Running: F:\P4\XXX\UnrealEngine\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe "F:\P4\XXX\UnrealEngine\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" UnrealPak Win64 Development -Project=F:\P4\XXX\XXX\XXX.uproject -Manifest=F:\P4\XXX\UnrealEngine\Engine\Intermediate\Build\Manifest.xml -log="F:\P4\XXX\UnrealEngine\Engine\Programs\AutomationTool\Saved\Logs\UBA-UnrealPak-Win64-Development.txt" UATHelper: Packaging (IOS): Log file: F:\P4\XXX\UnrealEngine\Engine\Programs\AutomationTool\Saved\Logs\UBA-UnrealPak-Win64-Development.txt UATHelper: Packaging (IOS): Creating makefile for UnrealPak (.uproject file is newer) UATHelper: Packaging (IOS): Parsing headers for UnrealPak UATHelper: Packaging (IOS): Running Internal UnrealHeaderTool F:\P4\XXX\XXX\XXX.uproject F:\P4\XXX\XXX\Intermediate\Build\Win64\UnrealPak\Development\UnrealPak.uhtmanifest -WarningsAsErrors UATHelper: Packaging (IOS): F:\P4\XXX\UnrealEngine\Engine\Source\Developer\SourceControl\Public\SourceControlHelpers.h(487): Error: Unable to parse delegate declaration; expected 'DECLARE_DYNAMIC_DELEGATE' but found 'DECLARE_DYNAMIC_DELEGATE_OneParam'. UATHelper: Packaging (IOS): Total of 0 written PackagingResults: Error: Unable to parse delegate declaration; expected 'DECLARE_DYNAMIC_DELEGATE' but found 'DECLARE_DYNAMIC_DELEGATE_OneParam'. UATHelper: Packaging (IOS): F:\P4\XXX\UnrealEngine\Engine\Source\Developer\ToolMenus\Public\ToolMenuDelegates.h(35): Error: Unable to parse delegate declaration; expected 'DECLARE_DYNAMIC_DELEGATE' but found 'DECLARE_DYNAMIC_DELEGATE_OneParam'. UATHelper: Packaging (IOS): Total execution time: 1.83 seconds UATHelper: Packaging (IOS): Took 1.95s to run dotnet.exe, ExitCode=6 PackagingResults: Error: Unable to parse delegate declaration; expected 'DECLARE_DYNAMIC_DELEGATE' but found 'DECLARE_DYNAMIC_DELEGATE_OneParam'. ... UATHelper: Packaging (IOS): BUILD FAILED

重现步骤
Use Windows to start Mac Remote build for ios with MacOS to 15.41 and Xcode to 16.3.

Hi Ce Wang,

Can you confirm the source version you are currently using? I am but finding MacRemote.cs in the 5.4.4 release.

Best regards.

I’d like to say that I’m also getting this issue with Mac remote build on 5.6. However it also deletes my engines Binaries folder which is particularly annoying.

I’ve attached my log to help debug.

Hi Kieran,

Can you confirm that the project causing this issue as a Blueprint-only project? If so, does adding C++ to the project resolve the issue?

Best regards.

Hi Kieran,

Can you confirm what the configured output directory for the remote build is?

Best regards.

It seems like UBT is trying to delete all files in /Engine/Programs/ of Windows device and then download those files from Mac to Windows, however the downloading action failed.

Here are some more info:

In MacRemote.cs: UBT is trying to download those 4 files, however before the downloading begins, it deletes more files under the same root dir with those 4 files, like /Engine/Programs and /Engine/Binaries/Win64

`[2025.04.25-16.00.17:600][696]UATHelper: Packaging (IOS): [Remote] FilesToDownload: F:\P4\XXX\UnrealEngine\Engine\Programs\AutomationTool\Saved\Logs\UBA-XXXGame-IOS-Development_Remote.txt

[2025.04.25-16.00.17:600][696]UATHelper: Packaging (IOS): [Remote] FilesToDownload: F:\P4\XXX\XXGame\Binaries\IOS\XXXGame

[2025.04.25-16.00.17:600][696]UATHelper: Packaging (IOS): [Remote] FilesToDownload: F:\P4\XXX\XXGame\Binaries\IOS\XXXGame.stub

[2025.04.25-16.00.17:600][696]UATHelper: Packaging (IOS): [Remote] FilesToDownload: F:\P4\XXX\XXGame\Binaries\IOS\XXXGame.target`

Sorry, it’s ​RemoteMac.cs instead, my mistake.

Hi [Content removed]

This project is a C++ project I’m afraid. Is there any more info I can give you?

Thanks