you need to apply the mpp plugin in `ios.gradle.kt...
# multiplatform
s
you need to apply the mpp plugin in
ios.gradle.kts
as well
b
I tried
apply(plugin = "kotlin-multiplatform")
before the import statement, but I get the same result
Like this?
Copy code
apply(plugin = "kotlin-multiplatform")

import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetPreset
s
I believe so. You could also try
plugins
notation, like “org.jetbrains.kotlin.multiplatform”
b
after reviewing kotlin gradle dsl docs, looks like it's too early to switch to kotlin build gradle for this situation. afaict, you don't get type-safe accessors in applied scripts like this
seems like this covers the general issue: https://github.com/gradle/kotlin-dsl/issues/1287