Missing receipt

Hello,

When you create a project using (either c++ or blueprint) and then try to cook your content for windows you get the following error :

Project.Cook: ********** COOK COMMAND COMPLETED **********
MainFrameActions: Cooking (Windows): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Cooking (Windows): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Cooking (Windows): Program.Main: ERROR: Exception in AutomationScripts.Automation: Stage Failed. Missing receipt 'Aku-Win64-Development.target.xml'. Check that this target has been built.
MainFrameActions: Cooking (Windows): Stacktrace:    à Project.CreateDeploymentContext(ProjectParams Params, Boolean InDedicatedServer, Boolean DoCleanStage)
MainFrameActions: Cooking (Windows):    à Project.Package(ProjectParams Params, Int32 WorkingCL)
MainFrameActions: Cooking (Windows):    à BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Cooking (Windows):    à BuildCommand.Execute()
MainFrameActions: Cooking (Windows):    à AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Cooking (Windows):    à AutomationTool.Automation.Process(String[] CommandLine)
MainFrameActions: Cooking (Windows):    à AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Cooking (Windows):    à AutomationTool.InternalUtils.RunSingleInstance(Action`1 Main, Object Param)
MainFrameActions: Cooking (Windows):    à AutomationTool.Program.Main()
MainFrameActions: Cooking (Windows): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Cooking (Windows): Program.Main: AutomationTool exiting with ExitCode=Error_MissingExecutable
MainFrameActions: Cooking (Windows): Domain_ProcessExit
MainFrameActions: Cooking (Windows): copying UAT log files...
MainFrameActions: Cooking (Windows): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Cooking (Windows): BUILD FAILED

Steps to reproduce :

1/ Download either UE4.10 preview 2 or UE4.9.2 from epic game launcher

2/ Create a project

3/ Cook & fail…

Thank you

After a few more tests i found a workaround : packaging your game will generate the missing receipt file, allowing you to cook.

Absolutely helpful and still valid in 4.17.1!

click “launch” in your pc will generate .target file(in binaries/win64) too.

What worked for me was:

  1. Remove “Intermediate” folder
  2. Package project
  3. Launch

I’m using v4.24.2 on an Android project.