Native: make xcrun failures a bit more useful again
^KT-50923
This commit is contained in:
committed by
Space
parent
66bf5b08ba
commit
eb78f5e1ca
@@ -92,9 +92,13 @@ private object CurrentXcode : Xcode {
|
|||||||
private fun xcrun(vararg args: String): String = try {
|
private fun xcrun(vararg args: String): String = try {
|
||||||
Command("/usr/bin/xcrun", *args).getOutputLines().first()
|
Command("/usr/bin/xcrun", *args).getOutputLines().first()
|
||||||
} catch (e: KonanExternalToolFailure) {
|
} catch (e: KonanExternalToolFailure) {
|
||||||
|
// TODO: we should make the message below even more clear and actionable.
|
||||||
|
// Maybe add a link to the documentation.
|
||||||
|
// See https://youtrack.jetbrains.com/issue/KT-50923.
|
||||||
val message = """
|
val message = """
|
||||||
An error occurred during an xcrun execution. Make sure that Xcode and its command line tools are properly installed.
|
An error occurred during an xcrun execution. Make sure that Xcode and its command line tools are properly installed.
|
||||||
Failed command: /usr/bin/xcrun ${args.joinToString(" ")}
|
Failed command: /usr/bin/xcrun ${args.joinToString(" ")}
|
||||||
|
Try running this command in Terminal and fix the errors by making Xcode (and its command line tools) configuration correct.
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
throw MissingXcodeException(message, e)
|
throw MissingXcodeException(message, e)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user