Swift package manager and custom build configurations

@LaurentHBrunet I'm running into the same issue. Do you have a potential workaround?