When I try to build right after initializing a new
build-tool-plugin, I get
The package does not contain a buildable target.
If I do really need a
--init should set up my package that way — if I don't need it, then... it should not give an error.
➜ mkdir NewPlugin ➜ cd NewPlugin ➜ swift package init --type build-tool-plugin Creating build-tool-plugin package: NewPlugin Creating Package.swift Creating .gitignore Creating Plugins/ Creating Plugins/NewPlugin.swift ➜ swift build error: The package does not contain a buildable target. Add at least one `.target` or `.executableTarget` to your `Package.swift`.