How to send a custom param to the resource template

Question or problem

Hi, I want to move from SwiftGen to Tuist to generate the assets for my project. For that, I want to pass some custom params to the stencil template I’m using since I want to differenciate Colors from Images when generating the global enum.

I tried to use .assets(parserOptions: ["name": .string("AllColors")])
in the resourceSynthesizers array param for the Tuist Project. But I’m getting this error when generating

We received an error that we couldn't handle:
    - Localized description: The operation couldn’t be completed. (SwiftGenKit.ParserOptionList.Error error 0.)
    - Error: unknownOption(key: "name", value: "AllColors")

I’m not sure if this is a bug or the it’s the expected behaviour and I’m using it wrong.

Couldn’t find any documentation related to this.

Thanks.

Context

  • Tuist version: 4.38.2

Hi @WedgeSparda :wave:
And welcome to the forum. I’m sorry to hear that you ran into issues trying to use resource synthesizers.

Any chance you can put together a small reproducible project and the steps to reproduce the issue that you describe?