spm-local

Manage Swift Package Manager dependencies locally with a cache and fetch script.

18|1|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/iAmMccc/ai-essentials --skill spm-local
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: spm-local
Source: https://github.com/iAmMccc/ai-essentials/tree/main/skills/spm-local
Command: npx skills add https://github.com/iAmMccc/ai-essentials --skill spm-local

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, python3, bash, and includes scripts (resource) components.

What problem does it solve?

当用户要求管理 SPM 本地依赖、添加新的三方库、更新依赖版本、或遇到 Xcode SPM 网络问题时使用。 通过终端下载三方库到本地 Packages/Caches 目录,再在 Xcode 中以 Add Local 方式引入。

Core Features & Use Cases

  • 通过本地缓存实现快速离线安装
  • 支持新增依赖、更新版本、以及代理网络场景
  • 适用于 iOS 开发中的 SPM 流程优化和团队协作

Quick Start

在项目根目录下运行 Packages/scripts/fetch-packages.sh 即可下载并本地化依赖。

Frequently Asked Questions about spm-local

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

FAQPage Schema
How do I manage SPM dependencies offline when Xcode fails to fetch Swift packages?▼

Bypass SPM network restrictions by running the fetch-packages.sh script to download Swift packages into a local Packages/Caches directory, then add them to Xcode via the Add Local method for offline access.

Can I update Swift Package Manager dependency versions locally without a network connection?▼

Update SPM dependency versions locally by modifying the packages.json file to specify versions, then executing the fetch-packages.sh script to download and cache them for offline use.

What is the best way to bypass Xcode SPM network limits in an iOS development team?▼

Bypass Xcode SPM network limits by utilizing a local cache under Packages/Caches, enabling iOS development teams to share and install Swift dependencies offline or via proxied network access.

Do I need git and python3 to run the SPM local fetch script?▼

Git, python3, and bash are required dependencies to run the SPM local fetch script, as they are necessary to download and manage Swift packages locally.

How to add a new third-party library to an iOS project using local SPM?▼

Add a new third-party library by updating packages.json with the library details, running fetch-packages.sh to download it, and importing the local package into Xcode.