https://kotlinlang.org logo
Title
r

ritesh

03/24/2020, 4:34 PM
Hey folks 👋 Wondering if KampKit allow us to export fat framework? If not then any leads would be really helpful on how to achieve it, thanks 🙌
r

russhwolf

03/24/2020, 4:36 PM
It's set up to export to cocoapods. That should create a fat framework as needed internally but let us know if you're having trouble with it
r

ritesh

03/24/2020, 6:38 PM
Thanks @russhwolf for a prompt response 🙌 Yeah the cocoapods integration works great though I was hoping if I could use the internal cocoapod’s gradle utility function (like packForXcode) via command line to export the framework? 😅 Basically I’m trying to setup a remote private pod thing so that I can pull things in Xcode (via podfile with a remote url) without cloning the entire KMP repo.
r

russhwolf

03/24/2020, 7:20 PM
You can do something like the fat framework task described here: https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#building-universal-frameworks
One thing we've tried some with clients is setting up a flag in local.properties that toggles between a binary framework output like that and the default build from source via the cocoapods plugin
r

ritesh

03/25/2020, 7:31 PM
Thanks Russell for the help 🙌 The above link worked very well 💯