xcodebuild fails if build tool plugins are installed

After having built the SwiftUI project numerous times from Xcode and allowing the plugins after the first build post install using xcodebuild -scheme <SchemeName> build fails with:

The following build commands failed:
	Validate plug-in “SwiftLintBuildToolPlugin” in package “swiftlintplugins”
	Validate plug-in “OpenAPIGenerator” in package “swift-openapi-generator”

How are we supposed to grant the plugins permission to run in the CLI? Everything I'm getting from Gemini is for packages, not apps.

xcodebuild fails if build tool plugins are installed
 
 
Q