RunUAT ERROR: AutomationTool failed to compile (Mac)

Hello, I’m trying to package my mobile project following this documentation.

The packaging never gets past the Launching UAT stage.

Here’s the full error log:

Running AutomationTool...
Setting up Mono
Compiling AutomationTool with xbuild
xbuild Source/Programs/AutomationTool/AutomationTool.csproj /p:Configuration=Development /p:Platform=AnyCPU /verbosity:quiet /nologo /p:TargetFrameworkProfile=
/Users/Shared/Epic Games/UE_4.17/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/Microsoft.CSharp.targets: error : Error executing tool '/Users/Shared/Epic Games/UE_4.17/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe': ApplicationName='/Users/Shared/Epic Games/UE_4.17/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe', CommandLine='/noconfig @/var/folders/cw/p2k24h9s2_qb1zhcjzs2_zjm0000gn/T/tmp27e8faeb.tmp', CurrentDirectory='/Users/Shared/Epic Games/UE_4.17/Engine/Source/Programs/DotNETCommon/DotNETUtilities', Native error= Cannot find the specified file
/Users/Shared/Epic Games/UE_4.17/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/Microsoft.CSharp.targets: error : Error executing tool '/Users/Shared/Epic Games/UE_4.17/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe': ApplicationName='/Users/Shared/Epic Games/UE_4.17/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe', CommandLine='/noconfig @/var/folders/cw/p2k24h9s2_qb1zhcjzs2_zjm0000gn/T/tmp52c15efd.tmp', CurrentDirectory='/Users/Shared/Epic Games/UE_4.17/Engine/Source/Programs/UnrealBuildTool', Native error= Cannot find the specified file
/Users/Shared/Epic Games/UE_4.17/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/Microsoft.CSharp.targets: error : Error executing tool '/Users/Shared/Epic Games/UE_4.17/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe': ApplicationName='/Users/Shared/Epic Games/UE_4.17/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe', CommandLine='/noconfig @/var/folders/cw/p2k24h9s2_qb1zhcjzs2_zjm0000gn/T/tmp8c34d5a.tmp', CurrentDirectory='/Users/Shared/Epic Games/UE_4.17/Engine/Source/Programs/AutomationTool/AutomationUtils', Native error= Cannot find the specified file
RunUAT ERROR: AutomationTool failed to compile.

I’ve double checked the folders mentioned in the error log, but couldn’t find anything.
On Windows, everything works okay. This is an error I only get on my Mac. Is there anything I’m missing?

Is there any solution for this? I’m still stuck at the same error.

Same here. 4.18 and 4.19
After trying the mobile patching for iOS method it seems that AutomationTool is completely broken.
I can’t do any IOS builds anymore, getting AutomationTool Errors…
I fixed this by reinstalling the engine, but IOS Patching seems to be broken right now.

try this:

  1. Close UE and open ‘Epic Games Launcher’; go to ‘Library’ and ‘Verify’ the Engine-Version you are compiling with (drop-down menu). This should re-download the precompiled AutomationTool.
  2. Delete or move the ‘AutomationTool’ project file.
  3. Build your project.

instead of:

RunUAT ERROR: AutomationTool failed to compile

You should now get:

UATHelper: Package Plugin Task (Mac): No project to compile, attempting to use precompiled AutomationTool

Default path of AutomationTool.csproj for UE_4.18:

#rm -rf /Users/Shared/Epic\ Games/UE_4.18/Engine/Source/Programs/AutomationTool/AutomationTool.csproj

I had exactly the same error. It seems like just the following command doesn’t work well:

xbuild Source/Programs/AutomationTool/AutomationTool.csproj /p:Configuration=Development /p:Platform=AnyCPU /verbosity:quiet /nologo /p:TargetFrameworkProfile=

I don’t know why this works, but cd to /Users/Shared/Epic Games/UE_4.19/Engine/ and type the same command above. Compilation succeeds.