SR-15836 Platform Conditionals Don't Apply To Binary Frameworks
Issue Description:
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:
Environment
Xcode 12.5.1
Xcode 13.0 beta 5
Additional Detail from JIRA
md5: 923498cd24ed244edda804515f08d0dd
is duplicated by:
Issue Description:
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:
https://github.com/gbrhaz/spm-binary-conditional
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: