Getting Started
Requirements
| Tool | Minimum version |
|---|---|
| macOS + Xcode | 16+ |
| Kotlin | 2.2.20+ |
| Gradle | 8.12+ |
Tip
Using an earlier Xcode version is possible — see Custom Swift Versions & Toolchains. Always use the latest Kotlin version when possible.
Apply the Plugin
build.gradle.kts
plugins {
id("org.jetbrains.kotlin.multiplatform")
id("io.github.frankois944.spmForKmp") version "[version]"
}
Gradle Properties
Add the following to your gradle.properties:
Initial Configuration
Use cinteropName to share a single bridge across targets and maintain compatibility with the legacy configuration style.
Legacy (< 1.1.0)
See the full swiftPackageConfig reference for all available options.