How can I change the name of the framework created...
# multiplatform
p
How can I change the name of the framework created with the cocoapods plugin. Is it as simple as editing the podspec?
d
Copy code
binaries.framework {
       baseName = "my_framework"
}
p
Thanks!
That didn’t seem to work. I’m using kts scripts, though.
d
Oh, I'm not sure then.
p
Copy code
kotlin {

    iosX64 {
        binaries {
            val frameworks = listOf(
                getFramework("debug"),
                getFramework("release")
            )
            frameworks.forEach { framework ->
                framework.baseName = "LambdaNewsCommon"
                framework.freeCompilerArgs.add("-Xobjc-generics")
                framework.export(deps.Oolong.Core)
            }
        }
    }

    cocoapods {
        summary = "Lambda News"
        homepage = "<https://github.com/pardom/lambda-news>"
    }
}
I’ll ask in #ios