From 5fd468c066d10dc2246dd3c5510d5193ca64ff6d Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Mon, 25 Apr 2022 19:52:40 +0300 Subject: [PATCH] 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. --- .../src/main/kotlin/org/jetbrains/kotlin/PlatformInfo.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/PlatformInfo.kt b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/PlatformInfo.kt index 0471867d1cc..cd0e91145b4 100644 --- a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/PlatformInfo.kt +++ b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/PlatformInfo.kt @@ -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." ) } }