New advertisers: 50% off your first month with code FIRSTMONTHSee slots
firebase avatar

Xcode Project Setup

Safe Swift-based tool that adds Swift Packages and links files to Xcode projects without manual .pbxproj edits.

skills.sh installs
141.3K
GitHub stars
522
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers adding SPM package dependencies and linking selected product modules to the main target's Frameworks build phase
  • Includes the xcode_spm_setup Swift script, which takes a .xcodeproj path, repo URL, version, optional --plist, and product names
  • Enforces a Swift-only toolchain, a ban on Ruby and direct .pbxproj edits, and automatic -ObjC injection for Firebase products
  • Designed for iOS projects that need dependencies such as Firebase or Alamofire installed, and for macOS environments with Swift installed

Install

$ npx -y skills add firebase/agent-skills --skill xcode-project-setup -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Xcode Project Setup

⛔️ CRITICAL RULES & ENVIRONMENT CHECKS

Before performing any Xcode setup or file manipulation, you MUST adhere to the following rules. A hefty fee will be applied if you violate them.

1. The Anti-Ruby Mandate

You are strictly forbidden from using Ruby, Rails, or any Ruby gems (including the xcodeproj gem). Under no circumstances may you write or execute Ruby scripts.

2. Modern Xcode Folder Synchronization

Modern Xcode projects support folder synchronization. When adding new source code (.swift) or resource files, simply write them to the correct directory on disk. They will be automatically included in the Xcode project. Never manually modify the .pbxproj file to add files.

3. Allowed Scripting Languages

If you absolutely must write a script to manipulate the project environment (e.g., configuring SPM packages beyond what the provided xcode_spm_setup script does), you must use Swift. Only as an absolute last resort, if Swift is completely unviable, may you use Node.js or TypeScript.

4. Toolchain Verification

Because this skill relies entirely on a native Swift script, you must verify the environment:

Details

Repository
github.com/firebase/agent-skills
Categories
Mobile Apps, DevOps & Cloud
First seen
May 16, 2026

More from firebase/agent-skills

All 17

Similar to Xcode Project Setup

More Mobile Apps