cocoapods-to-spm

Migrates Tanzu-Cap:ctor iOS projects from CocoaPods to Swift Package Manager workflows.

58|5|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/Cap-go/capgo-skills --skill cocoapods-to-spm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cocoapods-to-spm
Source: https://github.com/Cap-go/capgo-skills/tree/main/skills/cocoapods-to-spm
Command: npx skills add https://github.com/Cap-go/capgo-skills --skill cocoapods-to-spm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Migrates Capacitor iOS projects from CocoaPods to Swift Package Manager to modernize dependencies, remove CocoaPods, and adopt SPM-based dependencies across the iOS build.

Core Features & Use Cases

  • Analyze current CocoaPods usage and map to SPM equivalents for common libraries.
  • Remove CocoaPods integration, clean up Podfiles, and configure Xcode to use Package Dependencies.
  • Use a hybrid workflow that keeps Capacitor core under CocoaPods while migrating other libraries to SPM, with practical migration steps and troubleshooting.

Quick Start

Follow the migration steps to replace CocoaPods with Swift Package Manager in your iOS Capacitor project and validate builds.

Frequently Asked Questions about cocoapods-to-spm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate my iOS Capacitor project from CocoaPods to Swift Package Manager?

To migrate an iOS Capacitor project from CocoaPods to Swift Package Manager, you analyze current pod usage, map dependencies to SPM equivalents, clean up the Podfile, and configure Xcode package dependencies. A hybrid approach can keep Capacitor core under CocoaPods while migrating other libraries to SPM.

Can I use Swift Package Manager for third-party libraries while keeping Capacitor core on CocoaPods?

Yes, you can use a hybrid workflow that keeps the Capacitor core under CocoaPods while migrating third-party libraries to Swift Package Manager. This approach allows gradual migration of iOS dependencies without breaking the existing Capacitor build configuration.

What is the process to remove CocoaPods from an Xcode project and use SPM?

Removing CocoaPods from an Xcode project involves cleaning up the Podfile, removing the Pods directory, and configuring Xcode to use Swift Package Manager dependencies. The workflow ensures dependency analysis maps existing pods to valid SPM equivalents before finalizing the build setup.

Does Capacitor support Swift Package Manager for iOS dependencies?

Capacitor supports Swift Package Manager for iOS dependencies through a hybrid workflow, allowing you to migrate third-party libraries to SPM while maintaining the Capacitor core under CocoaPods. This modernizes dependency management across the iOS build without fully abandoning existing pod integrations.

What are the limitations of migrating Capacitor iOS dependencies to Swift Package Manager?

A key limitation is that the Capacitor core itself typically remains under CocoaPods, meaning a full removal of CocoaPods may not be possible for all Capacitor iOS projects. The hybrid approach requires careful dependency analysis to ensure third-party libraries have valid SPM equivalents before migration.