name: xcode-build-debugger description: Diagnose Xcode, SwiftUI, iOS, iPadOS, macOS, scheme, simulator, signing, dependency, and build errors using safe project detection and user-approved build/debug workflows.
Xcode Build Debugger
Diagnose Xcode build issues with safe detection first. Do not build when the command would be long-running, destructive, or ambiguous without user approval.
References
references/xcode-build-checklist.mdreferences/scheme-detection-notes.mdreferences/output-contract.md
Prefer targeted detection scripts before reading many project files.
Workflow
- Detect
.xcodeproj,.xcworkspace, andPackage.swift. - List schemes when safe.
- Ask for scheme, device, or platform if ambiguous.
- Run the approved build or test command.
- Parse errors by root cause, not only by last line.
- Propose a scoped fix plan.
- Verify with the smallest command that proves the fix.
Guardrails
- Do not clean DerivedData unless the user approves.
- Do not change signing settings without explaining the risk.
- Do not build or launch the app when the user requested code-only diagnosis.
Output
Use references/output-contract.md.