Thread
#multiplatform
    i

    ivan.savytskyi

    3 years ago
    hey folks, after migrating Kotlin to
    1.3.30
    the compilation of ios target fails with this stack trace:
    ...: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

    3 years ago
    Update your libraries, you got one on too old of a version of kotlin
    i

    ivan.savytskyi

    3 years ago
    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

    3 years ago
    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

    3 years ago
    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