Question: Integrating Kotlin Multiplatform (KMP) L...
# multiplatform
h
Question: Integrating Kotlin Multiplatform (KMP) Library into Another iOS Framework Hi all, I'm currently working on a Kotlin Multiplatform (KMP) library, and I need to export it as a framework that can be recognized and integrated into another iOS framework. Exposing the KMP library as a framework for a direct integration into an iOS app is straightforward, thanks to the
embedAndSignAppleFrameworkForXcode
script. This works perfectly for loading the framework directly into an iOS app (I'm not using CocoaPods for this, just direct framework integration). However, when trying to integrate the KMP library within another iOS framework, I’ve encountered issues where the framework is not being recognized as compatible. The error message suggests that the KMP library framework cannot be found, which points to either an integration issue or a compatibility problem with the iOS framework. Has anyone successfully integrated a KMP library into an iOS framework, or have any insights on how to troubleshoot this? Is there a special configuration required for making a KMP framework recognized by another iOS framework? Thanks in advance! ❤️
m
Did you try to export your multiplatform code as XCFramework ?
h
I will try that I was thinking about using SPM (swift package manager), thank you