Modern Apps git

xtool.git

Public
git clone https://git.maproj.org/xtool.git
appstore-distribution ▾

xtool.git / Tests / XToolTests / XcodeTests.swift

XcodeTests.swift11 lines · 378 BRaw
1import Testing
2import Foundation
3
4@Test(.requiresXcode) func validateXcode() {
5 let xcode = TestXcode.current()
6 let swift = xcode.appending(path: "Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift")
7 #expect(
8 FileManager.default.fileExists(atPath: swift.path),
9 "Invalid or unrecognized layout for Xcode.app at \(xcode.path)"
10 )
11}