Agent skill
Xcode Build Analyzer
Analyze Xcode build failures, categorize errors by type, identify cascade issues, and provide systematic fix plan for Leavn iOS app
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/xcode-build-analyzer
SKILL.md
Xcode Build Analyzer
Instructions
Systematically analyze and fix Xcode build errors:
-
Get error summary:
bashxcodebuild -project Leavn.xcodeproj -scheme Leavn -destination 'platform=iOS Simulator,name=LeavnTest' build 2>&1 | grep "error:" | cut -d: -f4- | sort -u -
Categorize by type:
- Import issues: Missing SwiftData, UIKit, etc.
- Type mismatches: Wrong return types, protocol conformances
- Actor isolation: @MainActor property access from nonisolated
- Property wrappers: @ObservedObject on @Observable types
- Missing types: Deleted files still referenced
- Binding issues: $var on non-@Bindable types
-
Identify cascade errors:
- One missing type → 50 errors
- One @Observable migration → 10 binding errors
- Find the root cause, fix once
-
Priority fix order:
- Missing imports (unlock many files)
- Missing types (cascade fixes)
- Property wrappers (mechanical fixes)
- Actor isolation (add nonisolated)
- Complex type inference (last)
-
Quick wins:
- Count errors between fixes
- Commit when 50%+ reduction achieved
- Disable broken code temporarily if needed
Use this skill when: Build fails with many errors, refactoring breaks build, need systematic error fixing
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?