UnrealBuildTool failed with exit code 0x00000006

macOS13.2 Beta
UE5.1

2 Likes

CONSOLE: /Users/Shared/Epic Games/UE_5.1/Engine/Build/BatchFiles/Mac/Build.sh SLN_NSEEditor Mac Development -Project=“/Users/niniu/Documents/Unreal Projects/SLN_NSE/SLN_NSE.uproject” -buildscw
Setting up bundled DotNet SDK
/Users/Shared/Epic Games/UE_5.1/Engine/Build/BatchFiles/Mac/…/…/…/Binaries/ThirdParty/DotNet/6.0.302/mac-arm64
Running dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll SLN_NSEEditor Mac Development -Project=/Users/niniu/Documents/Unreal Projects/SLN_NSE/SLN_NSE.uproject -buildscw
Log file: /Users/niniu/Library/Application Support/Epic/UnrealBuildTool/Log.txt
Creating makefile for SLN_NSEEditor (command line arguments changed)
/Applications/Xcode.app/Contents/Developer
Expecting to find a type to be declared in a module rules named ‘RD’ in UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null. This type must derive from the ‘ModuleRules’ type defined by Unreal Build Tool.
Build failed at 上午10:43:24

**关闭虚幻引擎编辑器,通过Rider启动虚幻引擎编辑器,此时再通过Rider进行编译则不会报错。**这个错误通常是由于在编辑器或游戏中进行代码迭代时,Live Coding仍处于活动状态。
打开错误日志可以看见:BuildException: Unable to build while Live Coding is active. Exit the editor and game, or press Ctrl+Alt+F11 if iterating on code in the editor or game at UnrealBuildTool.HotReload.CheckForLiveCodingSessionActive(TargetDescriptor TargetDescriptor, TargetMakefile Makefile, BuildConfiguration BuildConfiguration, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\HotReload.cs:line 231 at UnrealBuildTool.BuildMode.Build(TargetMakefile[] Makefiles, List`1 TargetDescriptors, BuildConfiguration BuildConfiguration, BuildOptions Options, FileReference WriteOutdatedActionsFile, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 526 at UnrealBuildTool.BuildMode.Execute(CommandLineArguments Arguments, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 242 at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 648 WriteFileIfChanged() wrote 0 changed files of 0 requested writes. Timeline:

3 Likes