Package Manager Conditional Target Dependencies

For the other two libraries, I literally meant enclosing every single file entirely in #if so that they successfully build as empty libraries:

#if os(macOS)
  // All library content here.
#endif

Otherwise your hack is still necessary, and there is no proposal in the evolution process yet that would make it otherwise. If you want to improve your hack to also support cross‐compilation, see this post: