Skip to content

Commit 7c1fa05

Browse files
plemarquandaward999
authored andcommitted
Add PrivateFrameworks as additional Swift Testing framework path (#1396)
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.
1 parent 092e1d4 commit 7c1fa05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/toolchain/toolchain.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,9 @@ export class SwiftToolchain {
462462
if (!base) {
463463
return undefined;
464464
}
465-
return path.join(base, "Library/Frameworks");
465+
const frameworks = path.join(base, "Library/Frameworks");
466+
const privateFrameworks = path.join(base, "Library/PrivateFrameworks");
467+
return `${frameworks}:${privateFrameworks}`;
466468
}
467469

468470
get diagnostics(): string {

0 commit comments

Comments
 (0)