It looks like you are trying to build a project with native targets. If so, one got to know that there are some prerequisites. There are listed in the repository of the Kotlin/Native, and one of them states that one should have installed XCode(
https://github.com/JetBrains/kotlin-native#kotlinnative).