Skip to content

Remove swiftpm-xctest-helper #6667

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

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Remove swiftpm-xctest-helper #6667

merged 1 commit into from
Jun 26, 2023

Conversation

neonichu
Copy link
Contributor

A while ago, the canonical version of the helper tool was moved to Xcode itself, but in OSS toolchains and local builds, we were still using the prior version of the tool. This removes the previous tool and adjusts the code for finding the correct tool in the user's Xcode installation.

rdar://74658052

A while ago, the canonical version of the helper tool was moved to Xcode itself, but in OSS toolchains and local builds, we were still using the prior version of the tool. This removes the previous tool and adjusts the code for finding the correct tool in the user's Xcode installation.

rdar://74658052
@neonichu neonichu requested a review from stmontgomery June 23, 2023 20:43
@neonichu neonichu self-assigned this Jun 23, 2023
@neonichu
Copy link
Contributor Author

@swift-ci please smoke test


// This will be true during swiftpm development or when using swift.org toolchains.
let xcodePath = try TSCBasic.Process.checkNonZeroExit(args: "/usr/bin/xcode-select", "--print-path").spm_chomp()
let installedSwiftBuildPath = try TSCBasic.Process.checkNonZeroExit(args: "/usr/bin/xcrun", "--find", "swift-build", environment: ["DEVELOPER_DIR": xcodePath]).spm_chomp()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the explicit DEVELOPER_DIR override here since I was seeing some confusing behavior from pure xcrun in the development scenario. I was basically ending up with the same path as runningSwiftBuildPath above. Looking up the Xcode path separately works, though.

@neonichu neonichu merged commit b7116db into main Jun 26, 2023
@neonichu neonichu deleted the remove-xctest-helper branch June 26, 2023 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants