
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-codeInstalls 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, orApp.xcworkspaceexists 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 syncwarnsSome installed Capacitor plugins are not compatible with SPMor<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/CAPBridgedPluginto 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- Capacitor App Upgrades815
- Cordova To Capacitor807
- Capgo Cli Usage773
- Capacitor Plugin Upgrades772
- Capacitor Plugin Spm Support756
- Capgo Native Builds754
- Capgo Release Management749
- Capgo Release Workflows749
- Sqlite To Fast Sql749
- Capacitor App Upgrade V7 To V8744
- Capgo Cloud731
- Capgo Organization Management725
- Ionic Enterprise Sdk Migration719
- Skill Creator718
- Ionic Appflow Migration690
- Capacitor Plugin Upgrade V7 To V8683
- Capacitor App Upgrade V6 To V7680
- Capacitor Best Practices2.9K
- Capacitor Plugins1.7K
- Ionic Design1.6K
- Debugging Capacitor1.4K
- Safe Area Handling1.4K
- Capacitor Testing1.4K
- Capacitor Deep Linking1.3K