How to Fix, Packaging Error = AutomationTool exiting with ExitCode=6 (6)

I tried to package to Windows, but the following log appears and the package does not work. I didn’t set the icon, changed the path, and disabled the plug-in, but it didn’t work.

LogUObjectHash: Compacting FUObjectHashTables data took 0.36ms
LogTurnkeySupport: Selected target: RemembraceProject
LogLauncherProfile: Unable to use promoted target - F:/RemembraceProject/Binaries/Win64/RemembraceProject.target does not exist.
LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ““C:/Users/hahah/Documents/UE_5.3/Engine/Build/BatchFiles/RunUAT.bat” -ScriptsForProject=“F:/RemembraceProject/RemembraceProject.uproject” Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=6072 -project=“F:/RemembraceProject/RemembraceProject.uproject” BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=“F:/RemembraceProject/RemembraceProject.uproject” -target=RemembraceProject -unrealexe=“C:\Users\hahah\Documents\UE_5.3\Engine\Binaries\Win64\UnrealEditor-Cmd.exe” -platfor
m=Win64 -installed -stage -archive -package -build -pak -iostore -compressed -prereqs -archivedirectory=“F:/RemembraceProject/TestPackage” -clientconfig=Development” -nocompile -nocompileuat ]
UATHelper: 패키징 (Windows): Running AutomationTool…
UATHelper: 패키징 (Windows): Using bundled DotNet SDK version: 6.0.302
UATHelper: 패키징 (Windows): Starting AutomationTool…
UATHelper: 패키징 (Windows): Parsing command line: -ScriptsForProject=F:/RemembraceProject/RemembraceProject.uproject Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=6072 -project=F:/RemembraceProject/RemembraceProject.uproject BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=F:/RemembraceProject/RemembraceProject.uproject -target=RemembraceProject -unrealexe=C:\Users\hahah\Documents\UE_5.3\Engine\Binaries\Win64\UnrealEditor-Cmd.exe -platform=Win64 -installed -stage -archive -package -build -pak -iostore -compressed -prereqs -archi
vedirectory=F:/RemembraceProject/TestPackage -clientconfig=Development -nocompile -nocompileuat
UATHelper: 패키징 (Windows): Initializing script modules…
UATHelper: 패키징 (Windows): Total script module initialization time: 0.12 s.
UATHelper: 패키징 (Windows): Executing commands…
UATHelper: 패키징 (Windows): Installed Sdk validity:
UATHelper: 패키징 (Windows): Win64: (Status=Valid, MinAllowed_Sdk=10.0.00000.0, MaxAllowed_Sdk=10.9.99999.0, Current_Sdk=10.0.22621.0, Allowed_AutoSdk=10.0.18362.0, Current_AutoSdk=, Flags=“InstalledSdk_ValidVersionExists”)
UATHelper: 패키징 (Windows): Scanning for envvar changes…
UATHelper: 패키징 (Windows): … done!
UATHelper: 패키징 (Windows): Cleaning Temp Paths…
UATHelper: 패키징 (Windows): BUILD SUCCESSFUL
UATHelper: 패키징 (Windows): Setting up ProjectParams for F:\RemembraceProject\RemembraceProject.uproject
UATHelper: 패키징 (Windows): ********** BUILD COMMAND STARTED **********
UATHelper: 패키징 (Windows): Running: C:\Users\hahah\Documents\UE_5.3\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe “C:\Users\hahah\Documents\UE_5.3\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” RemembraceProject Win64 Development -Project=F:\RemembraceProject\RemembraceProject.uproject -Manifest=F:\RemembraceProject\Intermediate\Build\Manifest.xml -remoteini=“F:\RemembraceProject” -skipdeploy -log=“C:\Users\hahah\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Users+hahah+Documents+UE_5.3\UBT-RemembraceProject-Win64-Development.txt”
UATHelper: 패키징 (Windows): Log file: C:\Users\hahah\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Users+hahah+Documents+UE_5.3\UBT-RemembraceProject-Win64-Development.txt
UATHelper: 패키징 (Windows): Creating makefile for RemembraceProject (no existing makefile)
UATHelper: 패키징 (Windows): Total execution time: 0.56 seconds
UATHelper: 패키징 (Windows): Unable to instantiate module ‘UnrealEd’: Unable to instantiate UnrealEd module for non-editor targets.
UATHelper: 패키징 (Windows): (referenced via Target → RemembraceProject.Build.cs → GraphEditor.Build.cs → EditorWidgets.Build.cs)
UATHelper: 패키징 (Windows): Took 0.66s to run dotnet.exe, ExitCode=6
UATHelper: 패키징 (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\hahah\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Users+hahah+Documents+UE_5.3\UBT-RemembraceProject-Win64-Development.txt)
UATHelper: 패키징 (Windows): AutomationTool executed for 0h 0m 2s
UATHelper: 패키징 (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: 패키징 (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error

UATHelper: 패키징 (Windows): Unable to instantiate module ‘UnrealEd’: Unable to instantiate UnrealEd module for non-editor targets.
UATHelper: 패키징 (Windows): (referenced via Target → RemembraceProject.Build.cs → GraphEditor.Build.cs → EditorWidgets.Build.cs)

You should not use editor-only modules in packaged builds. Assuming you don’t need those modules at runtime, fix your RemembraceProject.Build.cs to include such modules only when building editor, like this:

   if (Target.bBuildEditor)
   {
       PrivateDependencyModuleNames.AddRange(new []
       {
           "UnrealEd",
       });
   }