cocoapods-podspec-fundamentals

Automate creation and validation of CocoaPods podspec files.

187|20|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/TheBushidoCollective/han --skill cocoapods-podspec-fundamentals
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cocoapods-podspec-fundamentals
Source: https://github.com/TheBushidoCollective/han/tree/main/jutsu/jutsu-cocoapods/skills/podspec-fundamentals
Command: npx skills add https://github.com/TheBushidoCollective/han --skill cocoapods-podspec-fundamentals

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill covers the fundamentals for creating and maintaining CocoaPods podspec files, including required attributes, platform specs, and dependencies.

Core Features & Use Cases

  • Podspec Structure: Essential blocks like name, version, source, and license.
  • Platform Specifications: iOS/macOS deployment targets.
  • Dependencies: Manage library dependencies and system frameworks.

Quick Start

Create a minimal podspec for a hypothetical library with iOS support.

Frequently Asked Questions about cocoapods-podspec-fundamentals

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

FAQPage Schema
How do I create a podspec file for a CocoaPods library?

A podspec file defines your CocoaPods library with essential blocks: name, version, source, and license. The Skill automates podspec creation and validation for iOS, macOS, tvOS, watchOS, and visionOS, handling required attributes, platform deployment targets, dependencies, and multi-platform configurations.

What are the required attributes in a podspec?

Required podspec attributes include name, version, source, and license blocks. The Skill ensures all mandatory Pod::Spec elements are present and correctly formatted for CocoaPods to recognize and process your library across supported Apple platforms.

How do I specify platform deployment targets in a podspec?

Platform deployment targets define minimum OS versions for each platform. The Skill manages per-platform deployment targets for iOS, macOS, tvOS, watchOS, and visionOS, allowing you to set different minimum versions per platform within a single podspec.

Can I declare dependencies and vendored frameworks in a podspec?

Yes, podspecs support dependency declarations and vendored framework specifications. The Skill handles library dependencies, system frameworks, and vendored frameworks, plus resource management and file patterns for comprehensive dependency and asset configuration.

Does CocoaPods podspec support Swift libraries?

Yes, CocoaPods podspecs support Swift. The Skill covers Swift support configuration within podspecs, enabling you to package and distribute Swift libraries alongside Objective-C through proper attribute and version management.

How do I validate my podspec file?

Podspec validation ensures compliance with CocoaPods requirements and syntax correctness. The Skill automates validation of your podspec against Pod::Spec standards, checking attributes, platform targets, dependencies, and file patterns before publishing.