Hello. With a new KMM project, the better way to c...
# multiplatform
f
Hello. With a new KMM project, the better way to connect a KMM module to iOS project is to use CocoaPods integration approach or
embedAndSignAppleFrameworkForXcode
gradle task approach?? Are there pros and cons for each from them?
v
It depends on your current setup. If you already have an Xcode project that utilizes cocoapods then probably connecting KMM framework as a pod would be a good idea. If you want your KMM module to depend on third-party pods then again cocoapods work. If you don’t want to deal with cocoapods installation and setup then
embedAndSignAppleFrameworkForXcode
task is a solution
l
I noticed that my gradlew doesn't seem to have a task embedAndSignAppleFrameworkForXcode. I checked gradlew tasks. I have the plugin installed and active and am on a Mac.
j
You need to be using at least Kotlin 15.20 to be able to use that.
l
I'm using 1.5.21
j
I'm using in https://github.com/joreilly/MortyComposeKMM fwiw if you want to compare anything