Xcode 10.2 no longer supports Swift 3 causing compiler test to fail
Xcode 10.2 comes with Swift 5.
The test build project generated defaults to Swift 3.0.
This cannot be override by -DCMAKE_XCODE_ATTRIBUTE_SWIFT_VERSION=5.0
or export SWIFT_VERSION=5.0
.
Links:
Swift 5 Release Notes