https://kotlinlang.org logo
m

Michal Harakal

10/03/2020, 8:52 PM
I am still struggling around with exporting multimodules as xcode framework. Having this definition via shortcuts, where I want just add modules to export, gradle complains about
Cannot create binary debugFramework: binary with such a name already exists
Copy code
ios {
        binaries {
            framework {
                export(project(":shared:core"))
                export(project(":shared:domain"))
                export(project(":shared:presentation"))
                export(project(":shared:data"))
                export(project(":shared:backend:dukecon"))
            }
        }
    }
I can add a namePrefix to framework definition like this
binaries.framework("DukeconSdk"),
but it actually creates second binary artifact in
build
folder, one with prefix containing exported modules, but cocopad used the original one anyway. What I am missing? I would like to have only one framework containg exports ..
Meanwhile I have found out, that it seems to be a
"native.cocoapods"
plugin comming a cross …
Ok, I found solution, ohh boy… https://dev.to/touchlab/multiple-kotlin-frameworks-in-an-application-34e9 anyway, thank you touchlab 🙂 @kevinschildhorn
14 Views