Hi, Anyone knows how can I overwrite the iOS frame...
# kotlin-native
s
Hi, Anyone knows how can I overwrite the iOS framework name in build.gradle? I'm using a generated multiplatform project from IDEA
Copy code
kotlin {
    targets {
        fromPreset(presets.jvm, 'jvm')
        // This preset is for iPhone emulator
        // Switch here to presets.iosArm64 to build library for iPhone device
        fromPreset(presets.iosX64, 'ios') {
            compilations.main {
                outputKinds('FRAMEWORK')
            }
            //customFrameworkName??
        }
    }
...
h
@Sebastian Owodzin: let me know if you get it to work with the
-module_name
option. When I tried it out I couldn’t get it to do more than just change the prefix of the obj-c exports, not the framework itself
s
@hultgren I got it to work with:
Copy code
kotlin {
    targets {
        fromPreset(iosTarget, 'ios') {
            binaries {
                framework("customName") {
                    ...
                }
            }
        }
    }
}
h
@Sebastian Owodzin: yeah thank you. I recently revisited this as well and seems like it works fine now 👍
👍 1