I’m trying to build kotlinconf-app for ios, installed clion 2017.3 EAP, kotlin modules, cloned the github project, built successfully the android app and trying to compile the ios version. I successfully opened the ios project in CLion and can see three targets there (kotlinconf.compile, kotlinconf.kexe and libs).
When trying to build kontlinconf.* targets, the compilation fails with error saying it cannot find the libs package (and classes from it).
src/main/kotlin/data/FavoritesManager.kt:1:8: error: unresolved reference: libs
import libs.*
^
src/main/kotlin/data/FavoritesManager.kt:7:29: error: unresolved reference: KSession
fun isFavorite(session: KSession) = getFavorite(session) != null
^
When I try to build the libs package, compilation fails with error saying it cannot find Groot/Groot.h:
[100%] Generating CMakeFiles/libs/libs.klib
Exception in thread "main" java.lang.Error: /var/folders/94/c3pxr0kx6nzdmz3q6zp2bn740000gn/T/tmp1325937600661251236.m:1:10: fatal error: 'Groot/Groot.h' file not found
at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:135)
at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.indexDeclarations(Indexer.kt:875)
at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.buildNativeIndexImpl(Indexer.kt:865)
at org.jetbrains.kotlin.native.interop.indexer.NativeIndexKt.buildNativeIndex(NativeIndex.kt:55)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processLib(main.kt:317)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:33)
at org.jetbrains.kotlin.cli.utilities.MainKt.invokeCinterop(main.kt:90)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:112)
make[3]: *** [CMakeFiles/libs/libs.klib] Error 1
Any idea what is happening?