https://kotlinlang.org logo
i

ivan.savytskyi

04/24/2019, 3:27 PM
hey folks, after migrating Kotlin to
1.3.30
the compilation of ios target fails with this stack trace:
Copy code
...:compileKotlinIos FAILED
e: Compilation failed: null

 * Compiler version info: Konan: 1.2 / Kotlin: 1.3.30
 * Output kind: LIBRARY

e: kotlin.KotlinNullPointerException
        at org.jetbrains.kotlin.backend.common.phaser.PhaseConfig.phaseSetFromConfiguration(PhaseConfig.kt:64)
        at org.jetbrains.kotlin.backend.common.phaser.PhaseConfig.<init>(PhaseConfig.kt:14)
        at org.jetbrains.kotlin.backend.konan.Context.<init>(Context.kt:216)
        at org.jetbrains.kotlin.backend.konan.KonanDriverKt.runTopLevelPhases(KonanDriver.kt:20)
        at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:78)
        at org.jetbrains.kotlin.cli.bc.K2Native.doExecute(K2Native.kt:35)
        at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:84)
        at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:42)
        at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:103)
        at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:81)
        at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:49)
        at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(CLITool.kt:214)
        at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(CLITool.kt:206)
        at org.jetbrains.kotlin.cli.bc.K2Native$Companion$main$1.invoke(K2Native.kt:217)
        at org.jetbrains.kotlin.cli.bc.K2Native$Companion$main$1.invoke(K2Native.kt:208)
        at org.jetbrains.kotlin.konan.util.UtilKt.profileIf(Util.kt:39)
        at org.jetbrains.kotlin.konan.util.UtilKt.profile(Util.kt:33)
        at org.jetbrains.kotlin.cli.bc.K2Native$Companion.main(K2Native.kt:210)
        at org.jetbrains.kotlin.cli.bc.K2NativeKt.main(K2Native.kt:296)
        at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:16)
Did anyone see the same issue?
d

Dennis L

04/24/2019, 3:31 PM
Update your libraries, you got one on too old of a version of kotlin
i

ivan.savytskyi

04/24/2019, 3:33 PM
well, the issue that what kind of library I have to update as this MPP module part of large project with a lot of dependencies
just updated serialization and coroutines libs, still see the same issue
d

Dennis L

04/24/2019, 3:35 PM
If you're using klock that's on an old version still
multi plat settings got updated a few days ago to fix this issue too
i

ivan.savytskyi

04/24/2019, 3:42 PM
on my end just 2 libs are used, coroutines and kotlinx serialization. Updated them the same issue
stack trace doesn’t tell much
found the issue
this is my case