
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
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_setupSwift script, which takes a.xcodeprojpath, repo URL, version, optional--plist, and product names - Enforces a Swift-only toolchain, a ban on Ruby and direct
.pbxprojedits, and automatic-ObjCinjection 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 -yInstalls 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- Firebase Remote Config Basics131.8K
- Extension To Functions Codebase66.9K
- Firebase Firestore Standard37K
- Firebase Firestore Enterprise Native Mode36K
- Firebase Ai Logic34.5K
- Firebase Firestore Basics1.6K
- Firebase Data Connect
- Firebase Basics186.8K
- Firebase Auth Basics185.6K
- Firebase Hosting Basics181K
- Firebase App Hosting Basics180.3K
- Firebase Data Connect179.3K
- Firebase Security Rules Auditor149.7K
- Firebase Firestore146.3K
- Firebase Ai Logic Basics146.3K
- Firebase Crashlytics142.3K
Similar to Xcode Project Setup
More Mobile Apps
developing-ios-appsSkilldaymade/claude-code-skills1.6K installsBuild, sign, and notarize iOS and macOS apps with XcodeGen, SwiftUI, SPM, and CI/CD pipelines.
capacitor-plugin-spm-supportSkillcapawesome-team/skills1.3K installsAdds Swift Package Manager support to an existing Capacitor plugin via a CAPBridgedPlugin Swift migration.
xcode-project-analyzerSkillavdlee/xcode-build-optimization-agent-skill3.6K installsAudit Xcode project settings, schemes, and script phases for build-time fixes that need explicit approval.
XcodebuildmcpMCP servergetsentry6.6K starsBuild, run, test, and debug iOS and macOS apps through Xcode, simulators, and physical devices.
kotlin-tooling-cocoapods-spm-migrationSkillkotlin/kotlin-agent-skills2.1K installsMigrate KMP projects from CocoaPods to SwiftPM with the swiftPMDependencies DSL, keeping CocoaPods active until late.