Silence warnings about missing resources

Hey there,

I remember there was a discussion around this on Slack but it’s not accessible anymore so I reopen it here.

I have hundreds of modules and they all use the same description helper to create a target. This helper points to resource path in the Tuist manifest but not all of the modules actually have resources which emits the warning

▌ The following items may need attention:
▌  ▸ No files found at: Modules/Core/resources/**/*.{xcassets,png,json,otf,plist}
▌ ! Warning

This can pollute the Tuist output and wonder if adding a way of disable this warning message would be beneficial.

I’m aware that, strictly speaking, the warning message is correct because I tell Tuist to add resources but no resources are found.

However, to fix my warning, the options I have are

  • mute all warnings which would potentially hide warnings that are more relevant to me
  • fix the resource path for each of my module and supply it only when there are actually resources. This would be a bit tedious and would go a bit against of using a common Tuist description helper

wdyt?

thanks :pray:

Hey @JanC!

We agree these warnings can be annoying and not that useful. There’s an issue to change this: Remove annoying warning "No files found at:" for glob path · Issue #5552 · tuist/tuist · GitHub

There was also a PR to implement the needed changes but it has never gotten to a mergeable state – but it should be possible to pick it up and finish it off. We’d love to give you or someone else from the community a helping hand to implement this.

We might get to this as well, but no assurances on the timeline.

hey Marku :slight_smile:

I also noticed that in the last Tuist release, the warning messages are way more compact so the output is more readable even with the warnings.

I’ll look at the PRs
thanks!

1 Like