SR-15836 Platform Conditionals Don't Apply To Binary Frameworks
SPM has recently introduced conditional dependencies and binary targets (for xcframeworks). The two do not align, however. A binary dependency that is supported only on one platform is still linked on unsupported platforms.
I have created a repository here that I think showcases the issue:
In the repository I have added the GoogleCast frameworks into an xcframework. Since GoogleCast is only supported for iOS, the xcframework supports architectures for iOS and x64 Simulator.
I want to depend on GoogleCast - but only for iOS platform, not for tvOS.
In the above repository I have also added a source-only dependency that can showcase how conditional dependencies do work for source-only frameworks. It appears to only be binary dependencies that cause issues.
The text was updated successfully, but these errors were encountered: