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
Viacheslav Kormushkin
07/29/2021, 7:02 PM
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
Landry Norris
07/30/2021, 3:19 PM
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
John O'Reilly
07/30/2021, 3:20 PM
You need to be using at least Kotlin 15.20 to be able to use that.