Missing precompiled manifest for 'DeveloperToolSettings'

I’m writing a subsystem class that would package Unreal Engine projects, so at the moment it is basically copy-paste CookOrPackage().
My code builds correctly, but when I run my subsystem function it throws a runtime error with the main issue being:

Missing precompiled manifest for ‘DeveloperToolSettings’, ‘C:\Program Files\Epic Games\UE_5.3\Engine\Intermediate\Build\Win64\UnrealGame\Development\DeveloperToolSettings\DeveloperToolSettings.precompiled’. This module was most likely not flagged for being included in a precompiled build - set ‘PrecompileForTargets = PrecompileTargetsType.Any;’ in DeveloperToolSettings.build.cs to override. If part of a plugin, also check if its ‘Type’ is correct.
UATHelper: Packaging (Windows): Took 1.71s to run dotnet.exe, ExitCode=6

I’ve tried everything, including adding the line

PrecompileForTargets = PrecompileTargetsType.Any;

in my DeveloperToolSettings.Build.cs file.
Anyone familiar with this problem?

插件的.uplugin文件里是否使用了"Type": “DeveloperTool”?我就是用了这个打包的时候就出现跟你一样的错误,将其修改为Developer就可以了。如果使用了DeveloperTool那需要把插件通过编辑器的插件打包工具进行打包后再使用。