https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

Dmitry Motyl

05/27/2019, 1:36 PM
What does plugin “xcode-compat” need for?
a

Artyom Degtyarev [JB]

05/27/2019, 4:58 PM
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

louiscad

05/27/2019, 5:50 PM
Is there any example using it?
r

russhwolf

05/28/2019, 1:14 AM
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.
2 Views