Skip to content
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

Fix issues building when using Xcode Command Line Tools (no XCTest.) #316

Merged
merged 2 commits into from Mar 26, 2024

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Mar 25, 2024

This PR removes some stray dependencies on XCTest that prevent building the testing library and its test target when XCTest is not available on Darwin. This can occur if the Xcode Command Line Tools are installed instead of the full IDE.

Automated testing for this change is difficult because it relies on a build environment that is not supported in CI (namely the presence of the CL tools but not Xcode nor XCTest.framework.) I have manually tested the change against swift-testing's own test target.

For more information about this change, see apple/swift-package-manager#7426. That PR affects the Swift main-branch toolchain (Swift 6), not Swift 5.10 or earlier.

Resolves rdar://125371899.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

This PR removes some stray dependencies on XCTest that prevent building the
testing library and its test target when XCTest is not available on Darwin. This
can occur if the Xcode Command Line Tools are installed instead of the full IDE.

Automated testing for this change is difficult because it relies on a build
environment that is not supported in CI (namely the presence of the CL tools but
not Xcode nor XCTest.framework.) I have manually tested the change against
swift-testing's own test target.

For more information about this change, see apple/swift-package-manager#7426

Resolves rdar://125371899.
@grynspan grynspan added bug Something isn't working swiftpm-integration Swift Package Manager integration darwin macOS, iOS, watchOS, tvOS, and visionOS swift-6 Swift 6 issues (not affecting Swift 5.x) labels Mar 25, 2024
@grynspan grynspan self-assigned this Mar 25, 2024
@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan grynspan merged commit 705de54 into main Mar 26, 2024
3 checks passed
@grynspan grynspan deleted the jgrynspan/125371899-build-with-cltools branch March 26, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working darwin macOS, iOS, watchOS, tvOS, and visionOS swift-6 Swift 6 issues (not affecting Swift 5.x) swiftpm-integration Swift Package Manager integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants