Using XcodeGen with build tool plug-ins

585 Views Asked by At

I built a Swift Package that contains a plugin defined as a .buildTool(). I would like to use it in a project where we create the project via XcodeGen. I couldn't find a way to configure the YAML so that the named Swift Package is set under Run Build Tool Plug-ins in the Build Phases.

Has anyone had any experience with this, any help is highly appreciated?

1

There are 1 best solutions below

1
Stanislav M. On

Now it is possible in 2.37.0. Very similar to declaring regular dependencies:

buildToolPlugins:
  - plugin: Plugin_name
    package: Package_name