# ksp

Pavel Lahoda

03/27/2023, 10:28 AM
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 SymbolProcessorProvider file defined. However, when I add following into the gradle file of my shared module :
Copy code
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:
Copy code
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?


03/27/2023, 12:55 PM
You can check the Ktorfit source, the library has an ksp process and its works fine for all platforms

Pavel Lahoda

04/23/2023, 11:19 AM
Managed to get it running but still unable to generate code into the shared part of seems it only works for Android. No code is generated in iOS and common part. Seems that Ktorfit is having the same issue as well as koject which was another reference I was using.