Brand new to KN, coming from Android, so forgive m...
# kotlin-native
r
Brand new to KN, coming from Android, so forgive my lack of familiarity with native build processes. I’ve been trying to follow the hello world tutorials for KN, and they all point to a
kotlinc-native
compiler tool. I have
kotlin
and
kotlinc
available at my command line, but not
kotlinc-native
. I’m on Mac, and I don’t recall if I ever installed Kotlin or it was already there from using IntelliJ/Android Studio for Kotlin. How do I get this compiler?
a
Hello! If you ever tried to build a multiplatform project with a native target, Kotlin/Native should be already available somewhere like
~/.konan/kotlin-native-macos-<version>/bin/kotlinc-native
. If you have no such directory on your Mac, you can download the compiler manually - go to the https://github.com/jetbrains/kotlin/releases/latest and get it from the Assets subsection.
r
Yes, I do see it there! All the tutorials seemed to indicate that it should be added to the path, so I was unsure why I wasn’t seeing it. Thank you!
☝️ 1