Update SwiftPM to support custom configuration names

Hi @rmri , did you find a better way? for me on Xcode 15.3 even, when I select Release or rename the "Debug" configuration to "Dev" it does not take any effect. the code inside the package is still using the #if DEBUG macro. ¯_(ツ)_/¯