Hi everyone, I migrate to Kotlin 1.6.10 and after ...
# multiplatform
v
Hi everyone, I migrate to Kotlin 1.6.10 and after when compile iOS project by Xcode get error
Task commonModulelinkDebugFrameworkIosArm64 FAILED
e: Compilation failed: Symbol for kotlin.time/Duration.toComponents|2397542651005564009[0] is unbound Has anyone ever met with such a thing?
a
There was a similar problem at https://youtrack.jetbrains.com/issue/KT-50692. It required checking that all libraries were also updated onto the right version.
v
can’t find it (
a
My bad, it looks like the reporter did not shared it publicly. The problem there was caused by the fact that all dependencies were updated, but
kotlinx-datetime
was still pre-Kotlin 1.6.0. What deps do you have in your project?
v
For common module:
Copy code
implementation("com.squareup.sqldelight:runtime:1.5.0")
implementation("com.squareup.sqldelight:coroutines-extensions:1.5.0")
implementation("io.ktor:ktor-client-core:1.6.1")
implementation("io.ktor:ktor-client-json:1.5.4")
implementation("io.ktor:ktor-client-logging:1.5.4")
implementation("io.ktor:ktor-client-serialization:1.5.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0")
implementation("commons-codec:commons-codec:1.15")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.2.2")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.1.1")
a
It looks like kotlinx-datetime supported 1.6.0 with 0.3.2 and later(link). I think other dependencies might also require checking at their release pages.
v
Thank you so much! It’s working!)