capacitor-plugin-spm-support

Community

Enable SPM support for Capacitor plugins.

Authorhamza-sahin
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Guides developers through adding Swift Package Manager support to an existing Capacitor plugin, including Package.swift updates, CAPBridgedPlugin conversion, bridge cleanup, and manifest adjustments for SPM compatibility. Do not use for app projects or non-Capacitor plugin frameworks.

Core Features & Use Cases

  • Step-by-step guidance to migrate from CocoaPods to SPM where applicable.
  • Create and configure Package.swift, convert the plugin class to CAPBridgedPlugin, and update exports.
  • Use case: enabling a Capacitor iOS plugin to be consumed via SwiftPM across multi-target projects.

Quick Start

Follow the steps to convert a Capacitor plugin to use Swift Package Manager, add Package.swift, and adjust the iOS bridge and exports for SPM compatibility.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: capacitor-plugin-spm-support
Download link: https://github.com/hamza-sahin/pawbalance/archive/main.zip#capacitor-plugin-spm-support

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.