What does plugin “xcode-compat” need for?
# multiplatform
d
What does plugin “xcode-compat” need for?
a
Basically, this plugin reduces the number of manipulations that you need to build your project from the Xcode. Xcode usually sends builds parameters as
envvar
’s, but you need to extract these parameters (I mean things like architecture, etc.) and send to Gradle build - just because of K/N way to build project.
xcode-compat
just makes it automatically check this https://github.com/JetBrains/kotlin-xcode-compat/blob/master/xcode-compat/src/main/kotlin/org/jetbrains/kotlin/xcodecompat/XcodeCompatPlugin.kt
l
Is there any example using it?
r
AppCode’s Kotlin/Native project templates use it
Though I still have some questions. It’s not clear to me how to configure the plugin so that debug builds in xcode use a debug framework and release builds use a release framework.
Also it appears to only work using kts build scripts but I’m not sure if that’s deliberate or a bug.