# Diagnostics 一个文件**故意编译失败**;另一个错误来自插件配置,已在正文引用真实输出。 ```bash swiftc -typecheck Diagnostics/MissingResourceBundle.swift # error: type 'Bundle' has no member 'module' ``` 插件错误复现:把 build tool plugin 的 `prebuildCommand` 指向包内可执行 target(而不是系统工具),`swift build` 会报: ```text error: a prebuild command cannot use executables built from source, including executable target 'GenerateTool' error: build planning stopped due to build-tool plugin failures ```