Native: mention the way to suppress Xcode version check in the build

When building Kotlin/Native from sources on macOS, build scripts check
that installed Xcode has specific major version. It is possible to
suppress the version mismatch error (with caution), but the error
message didn't mention that.

Fix that by adding a hint to the error message.
This commit is contained in:
Svyatoslav Scherbina
2022-04-25 19:52:40 +03:00
committed by Space
parent 04ef856780
commit 5fd468c066
@@ -65,6 +65,7 @@ object PlatformInfo {
if (currentMajorVersion != requiredMajorVersion) {
throw IllegalStateException(
"Incorrect Xcode version: ${currentXcodeVersion}. Required major Xcode version is ${requiredMajorVersion}."
+ "\nYou can try '-PcheckXcodeVersion=false' to suppress this error, the result might be wrong."
)
}
}