From the Blog: > KaMPKit uses CocoaPods to buil...
# touchlab-tools
b
From the Blog:
KaMPKit uses CocoaPods to build KMP. We generally recommend using a different method currently, and KaMPKit should be updated.
What's the currently recommended method? SPM?
t
We just updated
main
of KaMPKit to the new recommendation. It's what we call "direct embedding" and means adding a "Framework Search Path" setting and a Run Script that invokes Gradle.
👍 1
Previously this was done by CocoaPods, but since more and more projects no longer use CocoaPods, the direct embedding is preferred.
Unfortunately Swift PM is still too feature-constrained to integrate with KMP smoothly. The direct embedding approach ensures you always have the latest Kotlin changes when you build an iOS app while only building the exact configuration and architecture you need, reducing compilation time. Make sure you use Gradle Configuration Cache too, so that invoking Gradle in the run script has minimal impact when there are no changes to the Kotlin code.