Nowadays, swift-corelibs-xctest exists, so it should be possible to use Spectre from XCTest on Linux. This change removes the #if guards around XCTest extensions, with the exception of some Xcode 12+ APIs that have not yet made it upstream.
Testing done
Builds and tests on a linux machine using the official Swift docker images:
$ docker pull swift
$ docker run -itv $PWD:/code swift swift test --package-path /code
Nowadays, swift-corelibs-xctest exists, so it should be possible to use Spectre from XCTest on Linux. This change removes the #if guards around XCTest extensions, with the exception of some Xcode 12+ APIs that have not yet made it upstream.
Testing done
Builds and tests on a linux machine using the official Swift docker images: