mirror of
https://github.com/xtool-org/xtool.git
synced 2026-10-19 05:18:33 +02:00
12 lines
378 B
Swift
12 lines
378 B
Swift
import Testing
|
|
import Foundation
|
|
|
|
@Test(.requiresXcode) func validateXcode() {
|
|
let xcode = TestXcode.current()
|
|
let swift = xcode.appending(path: "Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift")
|
|
#expect(
|
|
FileManager.default.fileExists(atPath: swift.path),
|
|
"Invalid or unrecognized layout for Xcode.app at \(xcode.path)"
|
|
)
|
|
}
|