Unreal packaging failed due to missing UnrealGame binary

We are trying to package an Unreal executable following this tutorial (Package Custom Scenes into Executable - MATLAB & Simulink - MathWorks Deutschland).
After building the lighting of project the AutoVrtlEnv.target file is missing from the Binaries\Win64 folder.
We followed the previous steps in the tutorial, such as rebuilding the lighting, making sure that the plugins are located in the same directory as the Unreal Editor requires them to be, …
When attempting to package the Unreal executable, the following error occurs:

Error Message:
Missing UnrealGame binary.
You may have to build the UE project with your IDE. Alternatively, build using UnrealBuildTool with the commandline:
UnrealGame

Output Log:
UATHelper: Packaging (Windows): ERROR: Stage Failed. Missing receipt ‘C:\project\AutoVrtlEnv\Binaries\Win64\AutoVrtlEnv.target’. Check that this target has been built.
UATHelper: Packaging (Windows): (see C:\Users____\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\Log.txt for full exception trace)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 1m 10s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=103 (Error_MissingExecutable)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Missing UnrealGame binary.You may have to build the UE project with your IDE. Alternatively, build using UnrealBuildTool with the commandline:UnrealGame

Do you have any insights on why the missing binary file is not built in the build process?

I think I had similar issue before, but can’t be 100% sure. So, did you try what it said you should do - build game from IDE? Open it in Visual studio, or Rider, and build the project from there.

If I remember correctly, I resolved it by deleting these directories:

Binaries
Derived Data Cache
Intermediates
Saved
.vs
YourProject.sln

Then I did right click on uproject file → Generate visual studio project file, and then it worked for me.

YOU MUST BACKUP THE FILES YOU ARE DELETING. Even better, BACKUP WHOLE PROJECT

Solved: Matlab R2024a Updated 3 solved the problem. It was a problem with the MathWorksSimulation plugin

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.