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

Omar Mainegra

06/01/2020, 8:23 PM
Hi folks, I posted this in #kotlin-native but I couldn't get any answer. How can I run the RELEASE configuration for the iOS tests?  I can't even find the option to link it, just the debug one (
linkDebugTestIos
)
Kotlin 1.3.72, using the multiplatform gradle plugin
Just in case anyone else is interested, I found a workaround:
Copy code
configure([iosX64, iosArm64]) {
    binaries.all {
        if (it instanceof org.jetbrains.kotlin.gradle.plugin.mpp.TestExecutable) {
            it.debuggable = false
            it.optimized = true
        }
        ...
    }
    ...
}
The gradle task is still named
linkDebugTestIos
(Linking) and
iosTest
(Running), but the executable is half the size, and twice faster
👍 3
3 Views