How Kotlin/Native compiles Kotlin code directly into platform-specific machine code without requiring a Java Virtual Machine.
A master bilingual author who prints their book in English for one country and simultaneously produces an authentic, certified Spanish edition that reads like it was written by a native Spanish speaker.
Kotlin frontend compiler parses Kotlin source code into an Intermediate Representation (IR)
Kotlin/Native backend transforms IR into LLVM bitcode
LLVM optimization passes perform dead code elimination, inlining, and loop vectorization
LLVM emits native ARM64 machine code binaries for iOS physical devices and x86_64 for simulators
Xcode links the resulting .xcframework directly into the iOS build pipeline
// build.gradle.kts (Kotlin Multiplatform Configuration)
kotlin {
androidTarget()
// Compiles to native iOS ARM64 binaries via LLVM
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = "SharedKit"
}
}
}Because Kotlin/Native produces real binary frameworks, iOS apps experience 0ms interpreter startup delay.