-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[5.9] Reduce XCTest minimum deployment target computation #6886
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
Conversation
@swift-ci please test |
The first time I saw this I took it at face value and updated the integration tests package, but I think this is actually an issue with this PR. The diagnostic is technically correct in the sense that these are the deployment targets at the package level, but the test target specifically should receive a raised deployment target of macOS 11 or maybe even 12? |
Hm, it doesn't seem as if I can reproduce the IntegrationTests issue locally |
Ah, I cannot reproduce locally because the Xcode I am using contains XCTest with a macOS 13 deployment target which is new enough to fulfill the TSC requirement. So that suggests that the raising of the deployment target still works correctly with my changes, at least in principle. So that means it is correct to update the IntegrationTests package manifest, but I still cannot explain why the issue is only surfacing in this PR. Seems like there must still be a change in behavior somewhere, albeit it seems like that might bring us closer to expect behavior. |
Scratch that, this was working locally because I had a random old resolved file lying around in the IntegrationTests, so I was getting a version that still used a 10.13 minimum deployment target. |
We never need this for any platform that we're not building for and we also don't really need it for most commands. So we can just move the computation to SwiftTool and leave these empty for all other cases. rdar://64596106 (cherry picked from commit 019a6fb)
4e8cd3e
to
977c1f5
Compare
Found the issue:
|
@swift-ci please test |
@swift-ci please test windows |
We'll need the fix in |
We never need this for any platform that we're not building for and we also don't really need it for most commands. So we can just move the computation to SwiftTool and leave these empty for all other cases.
rdar://64596106
(cherry picked from commit 019a6fb)