Hi, is there a trick to getting the latest koin-annotations (1.2.0) to work with synthetic KMP source sets such as iosMain? I have added ksp configurations for iosArm64 and iosX64, so now I'm getting code generated for these targets (such as the .module extension on
@Module
annotated classes) but that didn't make things accessible from the common iOS source set. Code in thread below.
fun iosStartKoin() {
val iosModule = module {
includes(IosModule().module)
}
sharedStartKoin(platformModule = iosModule)
}
Julian Ostarek
04/21/2023, 3:32 PM
Copy code
> Task :shared:compileIosMainKotlinMetadata FAILED
e: file://[...]/shared/src/iosMain/kotlin/[...]/IosModule.kt:100:30 Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public val SharedModule.module: Module defined in org.koin.ksp.generated
public val BackendModule.module: Module defined in org.koin.ksp.generated