https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
k

Kris Wong

04/28/2020, 7:57 PM
the workflow to use cocoapods dependencies in a KMP project seems quite odd. who is doing this? did you just create a shell project in Xcode so that you could build your KMP framework?
a

alex009

04/29/2020, 4:31 AM
we use our custom cocoapods integration solution - https://github.com/icerockdev/mobile-multiplatform-gradle-plugin#setup-cocoapods-interop here usage - https://github.com/icerockdev/moko-widgets/blob/master/widgets-bottomsheet/build.gradle.kts#L48 but integration require exist xcode project with Pods dependencies.
k

Kris Wong

04/29/2020, 12:50 PM
yeah that's the kicker. i have to work on my library in IDEA, but then switch out to Xcode just to build it for iOS
and then switch back to test it
it rather sounds like a pain
a

alex009

04/29/2020, 12:54 PM
Yes, to not switch into xcode we build own plugin. It build cocoapod from gradle, generate def file and do cinterop
k

Kris Wong

04/29/2020, 12:56 PM
so, your plugin does or does not require using Xcode to build the project?
a

alex009

04/29/2020, 2:32 PM
It require xcodeproj with pods, not require open xcode manually
k

Kris Wong

04/29/2020, 2:33 PM
interesting
well that seems like reasonable compromise
thanks, i'll check it out!
got this working
4 Views