Avatar
swift test --destination destination.jsonすることで、Xcode 11.x無しにSwift 5.2以前のOSS ToolchainでXCTest使えた。 destination.json: { "extra-cc-flags": [], "extra-cpp-flags": [], "extra-swiftc-flags": [ "-I", "/Library/Developer/Toolchains/swift-5.2.5-RELEASE.xctoolchain/usr/lib", "-F", "/Applications/Xcode_12.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks" ], "sdk": "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/", "target": "x86_64-apple-macosx", "toolchain-bin-dir": "/Library/Developer/Toolchains/swift-5.2.5-RELEASE.xctoolchain/usr/bin", "version": 1 } (edited)
12:16 AM
ちなみに-Xswiftc-Iを渡す方法だと、OSS Toolchain添付のXCTest.swiftmoduleを優先させられなかった。