Swift Package Manager For Kotlin Multiplatform
spmForKmp is a modern alternative to the deprecated CocoaPods plugin for Kotlin Multiplatform projects targeting Apple platforms.
It integrates Swift Packages and bridges Swift↔Kotlin communication using the native Swift Package Manager — no third-party dependencies required.
Pure Swift Packages
Pure Swift packages cannot be exported directly to Kotlin. The plugin helps you create a bridge to work around this limitation — currently the most effective approach until native Swift import is supported in KMP.
Features
- Swift-Import to Kotlin — import your own Swift code for functionality unavailable in Kotlin
- SPM third-party dependencies — add external packages and use them inside your bridge
- Export to Kotlin — expose SPM dependencies and Swift code directly in Kotlin (when compatible)
Getting Started
Check out the playground to see how to import Swift code into Kotlin, or browse the sample project to see the plugin in action.
💬 Community & Support
-
AI Agent Skill: Use our AI Agent Skill to get assistance with your project.
-
Join our Slack channel
If you find the project useful, a star or a coffee goes a long way!