| name | fb |
| description | Fixes build errors for the Cursor Metro macOS app. Runs the build, parses xcodebuild errors, applies fixes, and re-builds until the build succeeds. Use when the user says /fb, "fix the build", or wants to fix compile errors in the Cursor Metro project. |
Fix Build (/fb)
Fix the Cursor Metro app build by building, reading errors, and applying fixes until the build succeeds.
Workflow
-
Build from the project root:
xcodebuild -project "CursorMetro.xcodeproj" -scheme "CursorMetro" -configuration Debug build 2>&1
Capture full stdout and stderr.
-
Parse errors from xcodebuild output:
- Look for lines like
path/to/file.swift:line:column: error: message
- Note file path (relative to project root), line, and message.
-
Fix each reported error in the source file(s):
- Open the file at the given path.
- Address the error (missing import, type mismatch, unknown symbol, etc.).
- Prefer minimal, targeted edits.
-
Re-run the build. If new errors appear, repeat from step 2. Stop when the build succeeds.
-
Report to the user: either "Build fixed" and a brief summary of changes, or that the build is still failing and what remains.
Notes