cap-go avatar

Cocoapods To Spm

Migrates Capacitor iOS apps from CocoaPods to Swift Package Manager, the default in Capacitor 8+. Walks you through `npx cap spm-migration-assistant`, preserving native customizations like entitlements and signing configs, or shows when to nuke and re-scaffold `ios/` cleanly. The catch is every plugin in your `package.json` needs SPM support before you can fully switch, so you'll check compatibility first or swap out stragglers. Covers both the automated CLI path and manual Xcode surgery. Useful if you're upgrading to Cap 8 or just tired of maintaining a `Podfile` when the rest of the ecosystem moved on.

skills.sh installs
836
GitHub stars
77
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/cap-go/capgo-skills
Categories
Documentation, Code Review & Quality, Debugging, Mobile Development
First seen
Jun 3, 2026

More from cap-go/capgo-skills

All 41
1dodopayments avatarbilling-sdkdodopayments/skillsGuide for building billing UI with BillingSDK - the open-source React component library for pricing tables, subscription management, usage meters, invoice histo831skills.sh installs
2steipete avatarbrave-searchsteipete/agent-scriptsWeb search and content extraction via Brave Search API. Use for searching documentation, facts, or any web content. Lightweight, no browser required.831skills.sh installs
3alirezarezvani avatarjira-expertalirezarezvani/claude-skillsAtlassian Jira expert for creating and managing projects, planning, product discovery, JQL queries, workflows, custom fields, automation, reporting, and all Jir830skills.sh installs
4pablostanley avatarefecto-graphic-designpablostanley/efecto-pluginDesign graphic assets with Efecto — presentations, pitch decks, event posters, email headers, blog images, open graph cards, business cards, resumes, menus, inf827skills.sh installs
5pproenca avatarui-designpproenca/dot-skillsUI/UX and frontend design best practices guidelines (formerly frontend-design). This skill should be used when writing, reviewing, or designing frontend code to827skills.sh installs
6postplusai avatarreference-contract-builderpostplusai/postplus-skillsBuild explicit learn/do-not-copy contracts for image and video generation references. Use this when a prompt uses benchmark videos, contact sheets, frames, or p824skills.sh installs