I’m attempting to write a build script for our project, and when I invoke the Unreal Automation Tool using the following:
RunUAT BuildCookRun -project=C:\Users\Josh\jcohen_SHODAN_4346\JoshCohenWorkspace\NORA\NORA.uproject -noP4 -clientconfig=Development -serverconfig=Development -platform=Win32 -targetplatform=Win32 -build -skipcook
The UAT fails to build the UnrealHeaderTool with the following:
UnrealBuildTool: ERROR: Couldn't find target rules file for target 'UnrealHeader
Tool' in rules assembly 'UnrealHeaderToolModuleRules, Version=0.0.0.0, Culture=n
eutral, PublicKeyToken=null'.
UnrealBuildTool: Location: C:\Program Files\Epic Games\4.7\Engine\Intermediate\B
uild\BuildRules\UnrealHeaderToolModuleRules.dll
UnrealBuildTool: Target rules found:
UnrealBuildTool: UnrealHeaderTool failed for target 'NORA' (platform: Win32, mod
ule info: C:\Users\Josh\jcohen_SHODAN_4346\JoshCohenWorkspace\NORA\Intermediate\
Build\Win32\NORA\Development\UnrealHeaderTool.manifest).
CommandUtils.Run: Run: Took 2.8211614s to run UnrealBuildTool.exe, ExitCode=2
ErrorReporter.Error: ERROR: AutomationTool error: Command failed (Result:2): C:\
Program Files\Epic Games\4.7\Engine\Binaries\DotNET\UnrealBuildTool.exe NORA Win
32 Development C:\Users\Josh\jcohen_SHODAN_4346\JoshCohenWorkspace\NORA\NORA.up
roject -noxge -NoHotReloadFromIDE. See logfile for details: 'UnrealBuildTool.tx
t'
BuildCommand.Execute: ERROR: BUILD FAILED
Program.Main: ERROR: AutomationTool terminated with exception:
Program.Main: ERROR: Exception in AutomationTool: Command failed (Result:2): C:\
Program Files\Epic Games\4.7\Engine\Binaries\DotNET\UnrealBuildTool.exe NORA Win
32 Development C:\Users\Josh\jcohen_SHODAN_4346\JoshCohenWorkspace\NORA\NORA.up
roject -noxge -NoHotReloadFromIDE. See logfile for details: 'UnrealBuildTool.tx
t'
Stacktrace: at AutomationTool.CommandUtils.RunAndLog(String App, String Comma
ndLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options,
Dictionary`2 EnvVars)
at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecu
table, String CommandLine, String LogName, Dictionary`2 EnvVars)
at AutomationTool.UE4Build.BuildWithUBT(String ProjectName, String TargetName
, UnrealTargetPlatform TargetPlatform, String Config, String UprojectPath, Boole
an ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean Force
FlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary`2
EnvVars)
at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuild
Products, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InForceNon
Unity, Boolean InForceUnity, Dictionary`2 PlatformEnvVars)
at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL)
at BuildCookRun.DoBuildCookRun(ProjectParams Params)
at BuildCommand.Execute()
at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictio
nary`1 Commands)
at AutomationTool.Automation.Process(String[] CommandLine)
at AutomationTool.Program.MainProc(Object Param)
at AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param
)
at AutomationTool.Program.Main()
Program.Main: ERROR: Command failed (Result:2): C:\Program Files\Epic Games\4.7\
Engine\Binaries\DotNET\UnrealBuildTool.exe NORA Win32 Development C:\Users\Josh
\jcohen_SHODAN_4346\JoshCohenWorkspace\NORA\NORA.uproject -noxge -NoHotReloadFr
omIDE. See logfile for details: 'UnrealBuildTool.txt'
ProcessManager.KillAll: Trying to kill 0 spawned processes.
Program.Main: AutomationTool exiting with ExitCode=2
Domain_ProcessExit
ProcessManager.KillAll: Trying to kill 0 spawned processes.
copying UAT log files...
RunUAT.bat ERROR: AutomationTool was unable to run successfully.
BUILD FAILED
The UnrealBuildTool.txt log shows:
Building UnrealHeaderTool...
ERROR: Couldn't find target rules file for target 'UnrealHeaderTool' in rules assembly 'UnrealHeaderToolModuleRules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
Location: C:\Program Files\Epic Games\4.7\Engine\Intermediate\Build\BuildRules\UnrealHeaderToolModuleRules.dll
Target rules found:
UnrealHeaderTool failed for target 'NORA' (platform: Win32, module info: C:\Users\Josh\jcohen_SHODAN_4346\JoshCohenWorkspace\NORA\Intermediate\Build\Win32\NORA\Shipping\UnrealHeaderTool.manifest).
Any idea how to resolve this? Thanks.