Skip to content
cap-go avatar

Cocoapods To Spm

Migrates Capacitor iOS apps from CocoaPods to Swift Package Manager before CocoaPods Trunk goes read-only.

CCM score
72 of 100
skills.sh installs
892
GitHub stars
79
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the CocoaPods-to-SPM move: running npx cap spm-migration-assistant, recovering from failed runs, and wiring up CapApp-SPM and debug.xcconfig
  • Includes an inspection workflow that lists Podfile pods, checks each plugin for Package.swift, and flags native customizations at risk
  • Enforces a rule that CapApp-SPM/Package.swift is CLI-managed, so customizations belong in capacitor.config.* instead
  • Designed for Capacitor 8.x and 9.x apps that still ship ios/App/Podfile and App.xcworkspace

Install

$ npx -y skills add cap-go/capgo-skills --skill cocoapods-to-spm -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

CocoaPods to Swift Package Manager Migration

Move a Capacitor iOS app from CocoaPods to SPM without losing native project customizations.

When to Use

TRIGGER when:

  • ios/App/Podfile, Pods/, Podfile.lock, or App.xcworkspace exists and the user wants SPM.
  • User asks about npx cap spm-migration-assistant, CapApp-SPM, debug.xcconfig, or --packagemanager SPM.
  • User worries about CocoaPods Trunk becoming read-only (expected December 2, 2026), or about pods that can no longer be published/updated.
  • npx cap sync warns Some installed Capacitor plugins are not compatible with SPM or <plugin id> does not have a Package.swift.
  • Upgrading to Capacitor 9 and wanting to drop CocoaPods at the same time.

Do not use:

  • Adding Package.swift / CAPBridgedPlugin to a plugin you maintain -> capacitor-plugin-spm-support.
  • SceneDelegate / UIScene adoption (Capacitor 8.5+, required by Xcode 27) -> capacitor-uiscene-migration.
  • The Capacitor major upgrade itself -> capacitor-app-upgrades, capacitor-app-upgrade-v8-to-v9.
  • Build or runtime failures unrelated to dependency management -> debugging-capacitor.

Why Now

Details

Repository
github.com/cap-go/capgo-skills
Categories
Mobile Apps, DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the cocoapods-to-spm skill do?

It migrates an existing Capacitor iOS app from CocoaPods to Swift Package Manager before CocoaPods Trunk becomes read-only, expected December 2, 2026. It keeps native project customizations while replacing Podfile, Pods and App.xcworkspace with CapApp-SPM.

How do I install the cocoapods-to-spm skill?

Run npx -y skills add cap-go/capgo-skills --skill cocoapods-to-spm -y in your project. The skill then guides the agent through migrating your Capacitor app from CocoaPods to Swift Package Manager.

Where does cocoapods-to-spm stand in its category?

It sits in the Mobile Apps category on Claude Marketplaces, alongside vercel-react-native-skills, animate-expo, write-swift, firebase-crashlytics and xcode-project-setup. It focuses on moving existing Capacitor iOS projects off CocoaPods.

When should I use cocoapods-to-spm instead of capacitor-app-upgrades?

Use it when your app still has ios/App/Podfile, Pods/ or App.xcworkspace and you want SPM. The full Capacitor major version upgrade is handled by capacitor-app-upgrades instead.

More from cap-go/capgo-skills

All 41

Similar to Cocoapods To Spm

More Mobile Apps