Michal Klimczak
06/29/2022, 10:58 AMCompilation failed: IrPropertyPublicSymbolImpl for com.example/myProperty|-7852496772092453113[0] is already bound: PROPERTY name:myProperty visibility:public modality:FINAL [val]
* Source files:
* Compiler version info: Konan: 1.6.21 / Kotlin: 1.6.21
* Output kind: PROGRAM
myProperty
is a top level property generated via ksp.
This happens when trying to add ksp generated src dirs to different apple targets. The code is generated only once in kspCommonMainKotlinMetadata
. Then if I add kotlin.srcDir("${project.buildDir.absolutePath}/generated/ksp/metadata/commonMain/kotlin")
to each configuration, this error appears.
It works fine if I only add it to the aggregating configuration (e.g. appleMain
), but it's something that can only get me so far, because I'm trying to automate it with a compiler plugin.