I am trying to setup KSP in the Multiplatform project (for Android and iOS). I've let the Android Studio to create a default multiplatform project, then added new module ksp with my ksp processor (taking it straight from another project, where it worked as expected).
I have the META-INF.services SymbolProcessorProvider file defined. However, when I add following into the gradle file of my shared module :
add("kspAndroid", project(":ksp"))
I am getting an error:
Task :shared:kspDebugKotlinAndroid FAILED
e: [ksp] No providers found in processor classpath.
Not sure where the info about "debugKotlinAndroid" is comming from, there is no such target nor module in the project.
When I replace the dependencies with:
add("kspIosX64", project(":ksp"))
The project make works, but the ksp processor is not invoked.
I would try to put the dependencies into the individual modules for both platforms, but this is not possible as there is no gradle file on the iOS platform.
Anybody has a success with setting up KSP with Android and iOS multiplatform project? Any idea what I might be doing wrong?