How do you enable the compiler flag for experiment...
# multiplatform
j
How do you enable the compiler flag for experimental generics '-Xobjc-generics' if using the cocoapods plugin?
k
Here's how I configured mine:
Copy code
ios {
    compilations {
        val main by getting {
            kotlinOptions.freeCompilerArgs = listOf("-Xobjc-generics")
        }
    }
    
    binaries { ... }
}
👍 1
j
I ended up with
Copy code
iosX64("ios") {
        compilations.main {
            kotlinOptions {
                freeCompilerArgs = ["-Xobjc-generics"]
            }
        }
    }
👍 I'm still in the past with groovy