Using different swift packages for different configurations

Hi,

is there a way to different swift packages for different build configuration? I.e. when I do Release-Builds I'd like to use MyPackage and for debug builds I'd like to use MyPackage-Debug.

My first thought was that I could handle this in the Package.swift but .target does not support configurations in .when but only plattforms.

So is there any way to use different packages depending on configuration?

Using different swift packages for different configurations
 
 
Q