Christopher Mederos
07/14/2025, 1:11 AM// Adds the required targetName for the KSP plugin
tasks.withType<com.google.devtools.ksp.gradle.KspTaskNative>().configureEach {
options.add(SubpluginOption("apoption", "compose-swift-bridge.targetName=$target"))
}
// support for generating ksp code in commonCode
// see <https://github.com/google/ksp/issues/567>
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask<*>>().configureEach {
if (name != "kspCommonMainKotlinMetadata") {
dependsOn("kspCommonMainKotlinMetadata")
}
}
Missing subplugin option -
[ksp] java.lang.IllegalArgumentException: Missing compose-swift-bridge.targetName, see docs
Missing task depends on -
Reason: Task ':composeApp:kspKotlinIosSimulatorArm64' uses this output of task ':composeApp:kspCommonMainKotlinMetadata' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Christopher Mederos
07/15/2025, 3:31 AM