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. But! An error occurs only in release build for iOS, if build into device or simulator - no problem * Compiler version info: Konan: 1.6.10 / Kotlin: 1.6.10 * Output kind: FRAMEWORK e: java.lang.NullPointerException at org.jetbrains.kotlin.backend.konan.optimizations.DataFlowIR$SymbolTable.mapClassReferenceType(DataFlowIR.kt:520) at org.jetbrains.kotlin.backend.konan.optimizations.DataFlowIR$SymbolTable.mapType(DataFlowIR.kt:554) at My gradle configure:
Copy code
com.android.tools.build:gradle:7.1.2
org.jetbrains.kotlin:kotlin-serialization:1.6.10
org.jetbrains.kotlinx:kotlinx-datetime:0.3.2
org.jetbrains.kotlinx:kotlinx-serialization-core:1.3.2
What could be the reason?
j
Away from computer right now but believe issue with that version of serialization....try 1.3.1
v
Does not work( If I change serialization version to 1.3.1 the error persists * Compiler version info: Konan: 1.6.10 / Kotlin: 1.6.10 * Output kind: FRAMEWORK e: java.lang.NullPointerException at org.jetbrains.kotlin.backend.konan.optimizations.DataFlowIR$SymbolTable.mapClassReferenceType(DataFlowIR.kt:520) at org.jetbrains.kotlin.backend.konan.optimizations.DataFlowIR$SymbolTable.mapType(DataFlowIR.kt:554) at org.jetbrains.kotlin.backend.konan.optimizations.DataFlowIR$SymbolTable.mapTypeToFunctionParameter(DataFlowIR.kt:560)
j
hmm, seems like exact same stack trace https://github.com/joreilly/PeopleInSpace/issues/118
not sure if perhaps a transitive dependency could still be pulling in 1.3.2 in your case.....
v
the first time the error occurred with version 1.3.1, then I raised the version to 1.3.2 and the error was repeated, then I lowered the version and cleaned up the project and the error remained
perhaps this is important, I use the integration of a common module into ios as a framework
If I deleted dependency org.jetbrains.kotlinxkotlinx serialization core1.3.1 I get a similar error
stack trace some different. Error in another task
Task commonModulelinkReleaseFrameworkIosArm64
e: Compilation failed: null * Source files: * Compiler version info: Konan: 1.6.10 / Kotlin: 1.6.10 * Output kind: FRAMEWORK