.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/agent-skills/xcode-project-setup
home/skills/firebase/agent-skills/xcode-project-setup
firebase avatar

xcode-project-setup

byfirebase· 35 skills

Installs

75k

Stars

389

Forks

76

Category

Mobile Development

View on GitHub

TL;DR

Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).

How to install xcode-project-setup?

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

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Use this skill

Run `npx skills use "https://github.com/firebase/agent-skills" --skill "firebase/agent-skills/xcode-project-setup"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.

Use the whole pack

Use the skills in "https://github.com/firebase/agent-skills" that are relevant to the current task. Run `npx skills add "https://github.com/firebase/agent-skills"` and select the relevant skills, then follow their instructions.

Files · 1

View on GitHub
SKILL.md
1# Xcode Project Setup
2 
3## ⛔️ CRITICAL RULES & ENVIRONMENT CHECKS
4 
5Before performing any Xcode setup or file manipulation, you **MUST** adhere to
6the following rules. A hefty fee will be applied if you violate them.
7 
8### 1. The Anti-Ruby Mandate
9 
10You are **strictly forbidden** from using Ruby, Rails, or any Ruby gems
11(including the `xcodeproj` gem). Under no circumstances may you write or execute
12Ruby scripts.
13 
14### 2. Modern Xcode Folder Synchronization
15 
16Modern Xcode projects support folder synchronization. When adding new source
17code (`.swift`) or resource files, simply write them to the correct directory on
18disk. They will be automatically included in the Xcode project. **Never manually
19modify the `.pbxproj` file to add files.**
20 
21### 3. Allowed Scripting Languages
22 
23If you absolutely must write a script to manipulate the project environment
24(e.g., configuring SPM packages beyond what the provided `xcode_spm_setup`
25script does), you **must use Swift**. Only as an absolute last resort, if Swift
26is completely unviable, may you use Node.js or TypeScript.
27 
28### 4. Toolchain Verification
29 
30Because this skill relies entirely on a native Swift script, you must verify the
31environment:
32 
33- Run `swift --version` before proceeding.
34- If the Swift command is not found, you must stop and recommend the user
35 install the Swift toolchain (e.g., via `xcode-select --install` on macOS), or
36 ask if you can attempt to install it for them. Do not attempt to proceed
37 without Swift.
38 
39### 5. Mandatory Linker Flags for Static Frameworks (Firebase)
40 
41When setting up SPM dependencies that heavily rely on internal Objective-C
42categories and `+load` methods (such as the Firebase iOS SDK suite), the Apple
43linker will aggressively strip these methods out if they are linked statically.
44 
45This causes fatal runtime crashes (e.g.,
46`FirebaseAuth/Auth.swift:167: Fatal error: Unexpectedly found nil`).
47 
48**The provided `xcode_spm_setup` Swift script automatically injects the `-ObjC`
49flag to `OTHER_LDFLAGS` when adding Firebase products.** However, you should
50still verify it is present in the build settings if you encounter issues.
51 
52- Failing to include this flag when adding Firebase dependencies is a critical
53 error.
54 
55______________________________________________________________________
56 
57## Empty Directory Workflow
58 
59If you are asked to build an iOS app or configure Xcode dependencies but **no
60`.xcodeproj` or `.xcworkspace` exists**, you MUST ask the user to create the
61project first:
62 
63**"No Xcode project found in this directory. Please create an empty Xcode
64project manually and let me know when you are ready to proceed."**
65 
66Wait for the user to confirm they have created the `.xcodeproj` via Xcode, then
67proceed with the Standard Xcode Workflow below.
68 
69______________________________________________________________________
70 
71## Standard Xcode Workflow
72 
73Do not use raw text parsing, `sed`, or Ruby scripts to modify `.pbxproj` files
74directly.
75 
76Instead, execute the Swift configuration package bundled with this skill
77(`scripts/xcode_spm_setup`) to securely install SPM packages and link optional
78config files (like `GoogleService-Info.plist`).
79 
80### **CRITICAL: Always Use Latest SDK Version**
81 
82To ensure access to the latest features and security fixes, always use the most
83recent version of the Firebase iOS SDK. Check for the latest release version at
84[https://github.com/firebase/firebase-ios-sdk/releases](https://github.com/firebase/firebase-ios-sdk/releases).
85 
86- Use the most recent version number (e.g., `11.x.y`) in your commands instead
87 of hardcoded placeholders.
88 
89### Understanding the Script's Actions
90 
91When adding a Swift Package to an Xcode project, two distinct steps must occur:
92 
931. Adding the package repository dependency (e.g.,
94 `https://github.com/Alamofire/Alamofire`).
951. Selecting the target (e.g., `MyApp`), navigating to **General > Frameworks,
96 Libraries, and Embedded Content**, and hitting the `+` button to explicitly
97 link the specific product modules (e.g., `Alamofire`).
98 
99**The provided `xcode_spm_setup` Swift script automatically handles BOTH of
100these steps for you.** By passing the list of modules as arguments, it safely
101injects the package dependency and automatically wires those modules to the main
102target's Frameworks build phase. You do not need to do any manual linking.
103 
104## Usage
105 
1061. **Locate the package path:** Find the absolute path to this skill's
107 `scripts/xcode_spm_setup` directory on disk.
1081. **Execute:** Run the native `swift run` command using the signature below:
109 
110```bash
111swift run --package-path <PATH_TO_SKILL>/scripts/xcode_spm_setup xcode_spm_setup <ProjectPath.xcodeproj> <RepoURL> <VersionRequirement> [--plist <Optional/Path/To/Config.plist>] <Product1> [Product2 ...]
112```
113 
114### Example 1: Generic Package (e.g., Alamofire)
115 
116Adding Alamofire to a standard Xcode project. Notice there is no `--plist` flag.
117 
118```bash
119swift run --package-path /Users/foo/.agents/skills/xcode-project-setup/scripts/xcode_spm_setup xcode_spm_setup MyApp.xcodeproj https://github.com/Alamofire/Alamofire 5.8.1 Alamofire
120```
121 
122### Example 2: Firebase (Requires Plist)
123 
124Adding Firebase and linking the `GoogleService-Info.plist` to the resources
125build phase automatically. *Note: Replace `11.0.0` with the actual latest
126version from
127[the releases page](https://github.com/firebase/firebase-ios-sdk/releases).*
128 
129```bash
130swift run --package-path /Users/foo/.agents/skills/xcode-project-setup/scripts/xcode_spm_setup xcode_spm_setup MyApp.xcodeproj https://github.com/firebase/firebase-ios-sdk 11.0.0 --plist MyApp/GoogleService-Info.plist FirebaseCore FirebaseAuth FirebaseFirestore
131```
132 
133*Note: The script is idempotent. It will automatically skip linking files or
134packages that are already present in the project.*

Security

Review

  • Gen Agent Trust Hubpass
  • Socketpass
  • Snykwarn

Preview

firebase/agent-skillsfirebase/agent-skills

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

▸ installing to .claude/skills…

✓ xcode-project-setup ready

Repofirebase/agent-skills
TypeSkills
CategoryMobile Development
ForDeveloper
UpdatedJul 2026
License—
First seenJul 26, 2026

Tags

Skill

Related

6 picks
Type
  1. vercel-labs avatarreact-native-skillsReact Native and Expo best practices for building performant mobile apps.SkillsJul 2026176k29k
  2. leonxlnx avatarimagegen-frontend-mobileElite mobile app image-generation skill for creating premium, app-native screen concepts and flows.SkillsJul 2026173k68k
  3. firebase avatarfirebase-crashlyticsComprehensive guide for Firebase Crashlytics, including provisioning and SDK usage.SkillsJul 202675k389
  4. expo avatarexpo-tailwind-setupFramework (OSS). Set up Tailwind CSS v4 in Expo with react-native-css and NativeWind v5 for universal stylingSkillsJul 202647k2.3k
  5. expo avatarexpo-dev-clientFramework (OSS). Build and distribute Expo development clients locally or via TestFlight for internal testing.SkillsJul 202646k2.3k
  6. expo avatarexpo-moduleFramework (OSS). Guide for creating and writing Expo native modules and views using the Expo Modules API (Swift, Kotlin, TypeScript).SkillsJul 202625k2.3k