ERROR: Targets cannot be built in the Debug configuration with this engine distribution

I have UE4 25.1 installed with debug symbols. When I try to package a project with Debug configuration I get this error.

Going to need more info than this

LogUObjectHash: Compacting FUObjectHashTables data took 1.36ms
LogMainFrame: Selected target: MyBlank3
LogLauncherProfile: Unable to use promoted target - …/…/…/…/Unreal Projects/MyBlank3/Binaries/Win64/MyBlank3-Win64-Debug.target does not exist.
UATHelper: Packaging (Windows (64-bit)): Running AutomationTool…
UATHelper: Packaging (Windows (64-bit)): Parsing command line: -ScriptsForProject=“D:/Epic Games/Unreal Projects/MyBlank3/MyBlank3.uproject” BuildCookRun -nocompileeditor -installed -nop4 -project=“D:/Epic Games/Unreal Projects/MyBlank3/MyBlank3.uproject” -cook -stage -archive -archivedirectory=“D:/Epic Games/Unreal Projects/MyBlank3/mybuild-debug” -package
-ue4exe=“D:\Epic Games\UE_4.25\Engine\Binaries\Win64\UE4Editor-Cmd.exe” -pak -prereqs -targetplatform=Win64 -build -target=MyBlank3 -clientconfig=Debug -utf8output
UATHelper: Packaging (Windows (64-bit)): Setting up ProjectParams for D:\Epic Games\Unreal Projects\MyBlank3\MyBlank3.uproject
UATHelper: Packaging (Windows (64-bit)): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows (64-bit)): Running: D:\Epic Games\UE_4.25\Engine\Binaries\DotNET\UnrealBuildTool.exe MyBlank3 Win64 Debug -Project=“D:\Epic Games\Unreal Projects\MyBlank3\MyBlank3.uproject” “D:\Epic Games\Unreal Projects\MyBlank3\MyBlank3.uproject” -NoUBTMakefiles -remoteini=“D:\Epic Games\Unreal Projects\MyBlank3” -skipdeploy -Manifest=“D:\E
pic Games\Unreal Projects\MyBlank3\Intermediate\Build\Manifest.xml” -NoHotReload -log=“C:\Users\spear3\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Epic+Games+UE_4.25\UBT-MyBlank3-Win64-Debug.txt”
UATHelper: Packaging (Windows (64-bit)): ERROR: Targets cannot be built in the Debug configuration with this engine distribution.

PackagingResults: Error: Targets cannot be built in the Debug configuration with this engine distribution.
UATHelper: Packaging (Windows (64-bit)): Took 1.1743374s to run UnrealBuildTool.exe, ExitCode=6
UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool failed. See log for more details. (C:\Users\spear3\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Epic+Games+UE_4.25\UBT-MyBlank3-Win64-Debug.txt)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error

LogUObjectHash: Compacting FUObjectHashTables data took 1.36ms
LogMainFrame: Selected target: MyBlank3
LogLauncherProfile: Unable to use promoted target - …/…/…/…/Unreal Projects/MyBlank3/Binaries/Win64/MyBlank3-Win64-Debug.target does not exist.
UATHelper: Packaging (Windows (64-bit)): Running AutomationTool…
UATHelper: Packaging (Windows (64-bit)): Parsing command line: -ScriptsForProject=“D:/Epic Games/Unreal Projects/MyBlank3/MyBlank3.uproject” BuildCookRun -nocompileeditor -installed -nop4 -project=“D:/Epic Games/Unreal Projects/MyBlank3/MyBlank3.uproject” -cook -stage -archive -archivedirectory=“D:/Epic Games/Unreal Projects/MyBlank3/mybuild-debug” -package
-ue4exe=“D:\Epic Games\UE_4.25\Engine\Binaries\Win64\UE4Editor-Cmd.exe” -pak -prereqs -targetplatform=Win64 -build -target=MyBlank3 -clientconfig=Debug -utf8output
UATHelper: Packaging (Windows (64-bit)): Setting up ProjectParams for D:\Epic Games\Unreal Projects\MyBlank3\MyBlank3.uproject
UATHelper: Packaging (Windows (64-bit)): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows (64-bit)): Running: D:\Epic Games\UE_4.25\Engine\Binaries\DotNET\UnrealBuildTool.exe MyBlank3 Win64 Debug -Project=“D:\Epic Games\Unreal Projects\MyBlank3\MyBlank3.uproject” “D:\Epic Games\Unreal Projects\MyBlank3\MyBlank3.uproject” -NoUBTMakefiles -remoteini=“D:\Epic Games\Unreal Projects\MyBlank3” -skipdeploy -Manifest=“D:\E
pic Games\Unreal Projects\MyBlank3\Intermediate\Build\Manifest.xml” -NoHotReload -log=“C:\Users\spear3\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Epic+Games+UE_4.25\UBT-MyBlank3-Win64-Debug.txt”
UATHelper: Packaging (Windows (64-bit)): ERROR: Targets cannot be built in the Debug configuration with this engine distribution.

I don’t know why but it keeps deleting my reply with the rest of the log.

Error log

Same problem here. Any solution?

build failed log.txt (144.9 KB)

I think you need to put it in development rather than debug.

1 Like

How do you fix it?

Are you trying to run from VSCode? If so, try the following:

  • Select Build and Run tab (at left)
  • Select the GameDebug Build type from the “Build and Run” dropdown
    No guarantees…(hopefully the pasted image (below) comes across in the post.
1 Like