ERROR: Couldn't find target rules file for target 'UnrealHeaderTool' in rules assembly 'UE4ModuleRules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'

Hi,

During building via command I get the following error:

ERROR: Couldn’t find target rules file for target ‘UnrealHeaderTool’ in rules assembly ‘UE4ModuleRules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.

This is a the log in more detail:

008UnrealBuildTool: ERROR: Couldn’t find target rules file for target ‘UnrealHeaderTool’ in rules assembly ‘UE4ModuleRules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.

008UnrealBuildTool: Location: C:\Program Files\Epic Games\4.9\Engine\Intermediate\Build\BuildRules\UE4ModuleRules.dll
008UnrealBuildTool: Target rules found:
008UnrealBuildTool: UE4Editor - C:\Program Files\Epic Games\4.9\Engine\Source\UE4Editor.Target.cs
008UnrealBuildTool: UE4Game - C:\Program Files\Epic Games\4.9\Engine\Source\UE4Game.Target.cs
008UnrealBuildTool: UnrealHeaderTool failed for target ‘Editor’ (platform: Win64, module info: D:\ UnrealEngine\Project\Intermediate\Build\Win64\Editor\Development\UnrealHeaderTool.manifest).

Looks like it has to do with the UnrealHeaderTool.

The version of the editor that I’m using is 4.9

Any idea what might cause this?

Kind regards,

If you have a precompiled version Unreal from the Launcher, you probably need to add the -Rocket flag to the command.

More info: What is "rocket" mode? - C++ - Epic Developer Community Forums