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

**URL:** <https://forums.unrealengine.com/t/mac-remote-build-failed-because-ubt-delete-all-files-in-engine-programs/2648894>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [April 24, 2025, 4:21pm UTC](https://forums.unrealengine.com/t/mac-remote-build-failed-because-ubt-delete-all-files-in-engine-programs/2648894 "2025-04-24T16:21:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 24, 2025, 4:21pm UTC](https://forums.unrealengine.com/t/mac-remote-build-failed-because-ubt-delete-all-files-in-engine-programs/2648894/1 "2025-04-24T16:21:11Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 24, 2025, 4:21pm UTC](https://forums.unrealengine.com/t/mac-remote-build-failed-because-ubt-delete-all-files-in-engine-programs/2648894/2 "2025-04-24T16:21:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 25, 2025, 7:33am UTC](https://forums.unrealengine.com/t/mac-remote-build-failed-because-ubt-delete-all-files-in-engine-programs/2648894/3 "2025-04-25T07:33:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 25, 2025, 8:28am UTC](https://forums.unrealengine.com/t/mac-remote-build-failed-because-ubt-delete-all-files-in-engine-programs/2648894/4 "2025-04-25T08:28:10Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [May 6, 2025, 6:52pm UTC](https://forums.unrealengine.com/t/mac-remote-build-failed-because-ubt-delete-all-files-in-engine-programs/2648894/5 "2025-05-06T18:52:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 7, 2025, 3:07am UTC](https://forums.unrealengine.com/t/mac-remote-build-failed-because-ubt-delete-all-files-in-engine-programs/2648894/6 "2025-05-07T03:07:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [June 6, 2025, 3:58pm UTC](https://forums.unrealengine.com/t/mac-remote-build-failed-because-ubt-delete-all-files-in-engine-programs/2648894/7 "2025-06-06T15:58:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [June 10, 2025, 4:15pm UTC](https://forums.unrealengine.com/t/mac-remote-build-failed-because-ubt-delete-all-files-in-engine-programs/2648894/8 "2025-06-10T16:15:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [June 11, 2025, 2:17pm UTC](https://forums.unrealengine.com/t/mac-remote-build-failed-because-ubt-delete-all-files-in-engine-programs/2648894/9 "2025-06-11T14:17:49Z")

</div>

Hi [Content removed]

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

Thanks

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [July 22, 2025, 3:21pm UTC](https://forums.unrealengine.com/t/mac-remote-build-failed-because-ubt-delete-all-files-in-engine-programs/2648894/10 "2025-07-22T15:21:27Z")

</div>

Hi Kieran,

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

Best regards.

---

<div class="post-metadata">

**Author:** ![step\_jac\_eg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@step\_jac\_eg](https://forums.unrealengine.com/u/step_jac_eg)\
**Post date:** [September 30, 2025, 7:38pm UTC](https://forums.unrealengine.com/t/mac-remote-build-failed-because-ubt-delete-all-files-in-engine-programs/2648894/11 "2025-09-30T19:38:10Z")

</div>

Hi Ce and Kieran,

A few CLs have gone into //UE5/Main that should address the Rsync issue causing files in the Engine directory to get wiped. 46348541 and 46368509.

Best regards.
