xcodegen-cli
SKILL.md
XcodeGen CLI
Overview
Use this skill to drive XcodeGen workflows end-to-end: prepare or edit specs, run the right command, inspect resolved configuration, and fix generation issues quickly.
Follow This Workflow
- Identify command context.
- Run
xcodegen ...if CLI is installed. - Run
swift run xcodegen ...when working inside the XcodeGen source repository.
- Run
- Resolve the spec path.
- Default to
project.ymlin current directory. - Use
--specfor custom paths or comma-separated multiple specs. - Use
--project-rootwhen include/source paths should resolve from another directory.
- Default to
- Inspect before changing behavior.
- Run
xcodegen dump --type summaryfor a quick structural view. - Run
xcodegen dump --type yaml --file /tmp/resolved.ymlto inspect merged/expanded output.
- Run
- Generate or cache.
- Run
xcodegen generatefor normal generation. - Run
xcodegen generate --use-cachein repetitive local or CI workflows. - Run
xcodegen cachewhen cache artifacts are needed without generation.
- Run
- Troubleshoot with direct feedback.
- Treat parser errors as spec syntax/schema issues.
- Treat validation errors as semantic project-model issues.
- Treat missing file errors as path, include, or working-directory issues.
Command Guidance
- Use
generateto produce.xcodeprojfrom spec files. - Use
generate --only-plistswhen only plist output is needed. - Use
dumpto inspect effective configuration inyaml,json,parsed-yaml,parsed-json,summary, orswift-dumpform. - Use
cacheto precompute/write cache files. - Add
--quietonly when caller asks for reduced output. - Add
--no-envto debug${ENV_VAR}expansion issues.
Spec Editing Guidance
- Keep root shape explicit:
name,targets, and optionalinclude,options,settings,schemes,packages. - Use
includeto split large specs and share reusable fragments. - Use
:REPLACEsuffix in keys when replacement is required instead of merge behavior. - Set
options.minimumXcodeGenVersionwhen relying on newer behavior. - Prefer incremental edits and validate after each edit with
dumporgenerate.
Validation Loop
- Update spec.
- Run
xcodegen dump --type summary. - Run
xcodegen generate --use-cache. - If generation fails, inspect resolved YAML using
dump --type yamland fix one issue at a time.
Quick Template
name: MyApp
options:
bundleIdPrefix: com.example
targets:
MyApp:
type: application
platform: iOS
deploymentTarget: "16.0"
sources: [MyApp]
Resources
Read references/api_reference.md for complete command flags, troubleshooting mappings, and links to the canonical docs in this repository.
Weekly Installs
7
Repository
zyuapp/agent-skillsFirst Seen
Feb 13, 2026
Security Audits
Installed on
codex7
gemini-cli6
github-copilot6
kimi-cli6
amp6
opencode6