1XCTest is not fully open-source, only the Swift library parts. We don't have a
2command-line runner available, so disable support.
3
4--- a/Sources/Commands/Utilities/TestingSupport.swift
5+++ b/Sources/Commands/Utilities/TestingSupport.swift
6@@ -72,7 +72,7 @@ enum TestingSupport {
7 /// - Returns: Array of TestSuite
8 static func getTestSuites(fromTestAt path: AbsolutePath, swiftTool: SwiftTool, enableCodeCoverage: Bool, sanitizers: [Sanitizer]) throws -> [TestSuite] {
9 // Run the correct tool.
10- #if os(macOS)
11+ #if false
12 let data: String = try withTemporaryFile { tempFile in
13 let args = [try Self.xctestHelperPath(swiftTool: swiftTool).pathString, path.pathString, tempFile.path.pathString]
14 var env = try Self.constructTestEnvironment(
15--- a/Sources/swiftpm-xctest-helper/main.swift
16+++ b/Sources/swiftpm-xctest-helper/main.swift
17@@ -11,8 +11,11 @@
18 //===----------------------------------------------------------------------===//
19
20 #if os(macOS)
21-import XCTest
22 import func Darwin.C.exit
23+print("Not supported in Nix.")
24+exit(1)
25+#if false
26+import XCTest
27
28 /// A helper tool to get list of tests from a XCTest Bundle on macOS.
29 ///
30@@ -134,6 +137,7 @@ do {
31 exit(1)
32 }
33
34+#endif // nix
35 #else
36
37 #if os(Windows)