Xcode Target Build Flavours

Ok, I think I figured out how to achieve this. Recipe below (for anyone interested)

  1. Make each Remote framework an SPM package.
  2. Make each Local framework a Tuist-driven Xcode Project and Framework.
  3. And, main magic - use PackageSettings in Package.swift of main app, adding here custom settings and build configuration.

When Tuist generates the project, it uses those customized build settings and applies it to every Remote framework (which is still an SPM dependency).

Things shine even more if you use a custom Tuist Plugin, and reuse Settings/BuildConfiguration across multiple Remote frameworks and Main app.

Thanks Tuist team!