hey folks is this configuration works for you: <ht...
# multiplatform
i
hey folks is this configuration works for you: https://github.com/JetBrains/kotlin-native/blob/master/FAQ.md#q-how-do-i-rename-the-ios-framework-default-name-is-project-nameframework? I can’t make it to generate custom named framework, it’s keep generating
main.framework
k
Copy code
iosX64("ios") {
        compilations.main {
            outputKinds "FRAMEWORK"
        }
        binaries {
            framework("$ios_framework_name")
        }
    }
👍 1
🙏 1
i
The
compilation.outputKinds
DSL is deprecated in 1.3.30 and replaced by the binaries block. So actually the example above creates two frameworks: the first one using the old
compilation.outputKinds
DSL and the second one using the binaries block. You can just remove
outputKinds
and declare the framework using the binaries block only:
Copy code
iosX64("ios") {
    binaries {
        framework("$ios_framework_name")
    }
}
🍻 1
🙏 1
BTW access to frameworks declared using the binaries block differs from the old one. See https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#building-final-native-binaries. You also can take a look at this diff: https://github.com/JetBrains/kotlin-mpp-example/compare/1f8d3a535291c4618fed2da62b8736688e1ae846..44034c1179e6890d3e2de85c4d1828196069850a. It shows migrating from the old DSL to the new one except disabling bitcode. It was just a workaround and can be omitted now.
k
i had noticed the 2 frameworks, but didn't care enough to look into it
thanks!