For anyone interested in implementing this one. The implementation should be similar to the Swift Macros one. A plugin is a CLI that’s then invoked using the -load-plugin-executable Swift compiler flag. So the following is needed:
- A target dependency between the target that uses the build plugin, and the target that represents the build plugin (command line tool)
- A
-load-plugin-executableflag in the Swift compiler flag build setting to point to the executable in the derived data directory.