kotlin-tooling-cocoapods-spm-migration

Installation
SKILL.md

CocoaPods to SwiftPM Migration for KMP

Migrate Kotlin Multiplatform projects from kotlin("native.cocoapods") to swiftPMDependencies {} DSL.

Requirements

  • Kotlin: 2.4.0-Beta2 or later (first public release with swiftPMDependencies support, available on Maven Central)
  • Xcode: 16.4 or 26.0+
  • iOS Deployment Target: 16.0+ recommended

Migration Overview

IMPORTANT: Keep the cocoapods {} block and plugin active until Phase 6. The migration adds swiftPMDependencies {} alongside the existing CocoaPods setup first, reconfigures Xcode, and only then removes CocoaPods.

Phase Action
1 Analyze existing CocoaPods configuration
2 Update Gradle configuration (repos, Kotlin version)
3 Add swiftPMDependencies {} alongside existing cocoapods {}
Related skills
Installs
255
GitHub Stars
435
First Seen
Mar 20, 2026