A simple Kotlin Multiplatform sample project to show how to build an XCFramework
There are three branches:
- kotlin-1.5.30: uses the official support for XCFramework that is landed with Kotlin 1.5.30
- pre-kotlin-1.5.30: uses a version of Kotlin prior to 1.5.30. To build and publish the XCFramework, there are some custom Gradle tasks defined in the build.gradle.kts file.
- pre-kotlin-1.5.30-with-plugin: uses a version of Kotlin prior to 1.5.30 and shows how the custom gradle tasks can be replaced by the KMP FatFramework Cocoa Gradle plugin.
For all the details, please refer to these articles: