-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-15589] Conditional target dependencies not working as expected in Package.swift #4370
Comments
|
Comment by Cameron (JIRA) I am still seeing this issue in Xcode 13.3 (13E113). |
|
Comment by Andrey Gusev (JIRA) Has the same thing: |
|
Bumping this. Running Xcode 13.3 toolchain with Swift 5.5 and still an issue. Conditional product dependencies not respected if said dependencies also depend on their own binary targets (e.g. xcframework). |
|
This still seems to be an issue with Version 14.2 (14C18) :( |
|
I have dug into this issue and determined that Xcode completely ignores target conditionals, while swift-build mostly works as expected. Please take the time to make some noise by filing an issue with apple through Feedback Assistant. |
Environment
macOS 12.0.1, Xcode 13.2 (13C90)
macOS 12.3, Xcode 13.3 (13E113)
Additional Detail from JIRA
md5: 1d817448ccceb0cac34d0ba118636b94
Issue Description:
I am working on a library for iOS and macOS platforms. When on iOS, I'd like to include a specific, iOS only, dependency. I am using conditional target dependencies to achieve this:
However, when I compile on a macOS target, I get the following error which feels incorrect to me:
It's true that the Embrace library does not have a macOS version, but I had figured my
condition: .when(platforms: [.iOS])would work around that.The text was updated successfully, but these errors were encountered: