Any help on the above please ^^
# kotlin-native
l
Any help on the above please ^^
l
now seems to build both iOS app and common project, but getting weird error on iOS project :
Copy code
kotlin.IllegalStateException: There is no event loop. Use runBlocking { ... } to start one.
        at 0   SharedCode                          0x000000010f02e4c5 kfun:kotlin.Exception.<init>(kotlin.String?)kotlin.Exception + 21 (/Users/teamcity/buildAgent/work/4d622a065c544371/runtime/src/main/kotlin/kotlin/Exceptions.kt:23:5)
        at 1   SharedCode                          0x000000010f02e485 kfun:kotlin.RuntimeException.<init>(kotlin.String?)kotlin.RuntimeException + 21 (/Users/teamcity/buildAgent/work/4d622a065c544371/runtime/src/main/kotlin/kotlin/Exceptions.kt:34:5)
        at 2   SharedCode                          0x000000010f03a0a5 kfun:kotlin.IllegalStateException.<init>(kotlin.String?)kotlin.IllegalStateException + 21 (/Users/teamcity/buildAgent/work/4d622a065c544371/runtime/src/main/kotlin/kotlin/Exceptions.kt:70:5)
        at 3   SharedCode                          0x000000010f058076 kfun:kotlinx.coroutines.takeEventLoop#internal + 294 
...
also iOS screen is not showing anything now, I just changed
createApplicationScreenMessage
to accept lambda:
Copy code
fun createApplicationScreenMessage(lambda: (String) -> Unit) {
    GlobalScope.launch {
        lambda("Kotlin Rocks on ${platformName()}")
    }
}