Skip to content

Commit

Permalink
Add PrivateFrameworks as additional Swift Testing framework path (#1396)
Browse files Browse the repository at this point in the history
This is essentially the same change made in:
swiftlang/swift-package-manager#8199

VS Code would be able to leverage it for regular runs with `swift test`
but because when debugging we launch the xctest executable directly to
run tests, we must include the same framework search paths as SPM.
  • Loading branch information
plemarquand authored Feb 20, 2025
1 parent 2c12337 commit 5550413
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/toolchain/toolchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,9 @@ export class SwiftToolchain {
if (!base) {
return undefined;
}
return path.join(base, "Library/Frameworks");
const frameworks = path.join(base, "Library/Frameworks");
const privateFrameworks = path.join(base, "Library/PrivateFrameworks");
return `${frameworks}:${privateFrameworks}`;
}

get diagnostics(): string {
Expand Down

0 comments on commit 5550413

Please sign in to comment.