Skip to content

Commit 5550413

Browse files
authored
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 2c12337 commit 5550413

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/toolchain/toolchain.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,9 @@ export class SwiftToolchain {
483483
if (!base) {
484484
return undefined;
485485
}
486-
return path.join(base, "Library/Frameworks");
486+
const frameworks = path.join(base, "Library/Frameworks");
487+
const privateFrameworks = path.join(base, "Library/PrivateFrameworks");
488+
return `${frameworks}:${privateFrameworks}`;
487489
}
488490

489491
get diagnostics(): string {

0 commit comments

Comments
 (0)