Provide the way to transform build settings and inject pre/post-build scripts for SwiftPM generated projects

Question or problem

How can I apply default build settings, and / or inject pre/post-build script phases into targets generated from SwiftPM packages, WITHOUT THE NEED TO DECLARE configuration per target of the package?

Expectation

I would expect to have certain post-processing closure that I provide to PackageSettings. This closure would get invoked for each target of each package. It would have an inout target: Target argument that represents a pre-configured Tuist Target description for SwiftPM target and would allow me to optionally modify it.

This would eliminate the necessity for me to map each internal target in each package if I need to override certain build settings for all targets in all packages.

Context

What I am trying to accomplish (including, but not limited to…) is to override min iOS version in all targets in all swift packages to make it the same as my app has.