The original thread on this wound up turning into being able to mark certain dependencies as platform-specific, but as far as I can tell, there's still no way for me to say within the same library that a core target should be available on all platforms, while secondary target b is only available on macOS/iOS etc but not for Linux.
This is frustrating since one may not want to expose all related targets of a single library to all platforms, and you have to
#if out a ton of stuff in targets that are not meant to support all platforms, even if the case is that you want literally none of that specific target to be available on that platform.
Is adding a
platforms property to
Target still a possibility? What are the complexities I'm missing in doing that?