Cocoapods To Spm

🌐Community
by cap-go · vlatest · Repository

Converts CocoaPods dependencies to SPM (Swift Package Manager) format, streamlining iOS development and simplifying dependency management.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add cocoapods-to-spm npx -- -y @trustedskills/cocoapods-to-spm
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "cocoapods-to-spm": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/cocoapods-to-spm"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

The cocoapods-to-spm skill automates the migration of iOS dependencies from CocoaPods to Swift Package Manager (SPM). It analyzes existing Podfile configurations and generates the necessary SPM manifest files to replace legacy dependency management.

When to use it

  • Modernizing an existing iOS project that relies on CocoaPods for third-party libraries.
  • Preparing a codebase for better integration with Xcode's native dependency resolution tools.
  • Reducing build times associated with CocoaPods' external repository fetching.
  • Simplifying the CI/CD pipeline by removing CocoaPods-specific configuration steps.

Key capabilities

  • Parses Podfile and Podfile.lock to identify all declared dependencies.
  • Generates a valid Package.swift file compatible with Swift Package Manager.
  • Handles version mapping between CocoaPods specifications and SPM requirements.
  • Outputs migration scripts or instructions for updating project targets.

Example prompts

  • "Migrate my iOS app's CocoaPods dependencies to Swift Package Manager."
  • "Convert the Podfile in this repository to a Package.swift file."
  • "Generate an SPM manifest for these specific CocoaPods libraries: Alamofire, SDWebImage, and Kingfisher."

Tips & gotchas

Ensure all third-party libraries support Swift Package Manager before attempting migration, as some older or niche pods may lack official SPM support. Manual review of the generated Package.swift is recommended to verify version constraints and target compatibility.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
cap-go
Installs
47

🌐 Community

Passed automated security scans.