UnrealBuildTool failed with exit code 0x00000006

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