Switch between development and distribution

Is there an easy way to switch between distributing swift package and swift binary?

My goal is to develop nested frameworks, where I would be able to interact (change & debug) code of underlying framework at the same time. Also, I need an easy way to distribute binaries of all those frameworks, since it is a closed-source.
While creating XCFrameworks from Swift packages may work in some limited cases, we don't support it today. The current binary dependencies feature is focused on making existing binary frameworks, created from Xcode framework or library targets, work as Swift packages only. So I would suggest using Xcode framework targets to develop your library.
Switch between development and distribution
 
 
Q