【发布时间】:2018-06-27 10:55:23
【问题描述】:
我在 CLion IDE 中创建了一个新的 Hello World Kotlin Native 项目,但我得到了。 kotlin native unknown host target 中的错误。
if (NOT KONANC_TARGET)
if (APPLE)
set(KONANC_TARGET macbook)
elseif (UNIX)
set(KONANC_TARGET linux)
else ()
**message(FATAL_ERROR "Unsupported host target")**
因为我使用的是 Windows,而 KONANC 仅在 macOS 和 Linux 上受支持。 如何修复此错误并在 windows 上运行 Kotlin Native 项目?
我关注了这个Kotlin Native Tutorial。
【问题讨论】:
标签: ios kotlin clion kotlin-native kotlin-multiplatform