Macos test diagnoser

From Xopoko/build-swift-apps · View interactive version

Macos test diagnoser is an AI agent skill from the GitHub repository Xopoko/build-swift-apps. macOS Xcode and SwiftPM tests: run focused scopes and diagnose build, assertion, crash, async-flake, fixture, entitlement, and host-app failures; separate regressions from setup issues.

How to use this skill

Skill file

macOS Test Diagnoser

Before invoking Apple-only binaries, confirm the execution context is macOS. From Windows or Linux, run those steps in a Mac SSH project or through an already configured remote transport; do not retry missing Apple binaries locally.

Workflow

  1. Use xcodebuild test for an Xcode scheme or swift test for a SwiftPM

package. Apply the requested target or filter, or start with the smallest

scope that can reproduce the failure.

  1. Check whether tests executed. Separate build failures from assertions and

crashes, then inspect fixtures, host app, entitlements, and simulator-only

assumptions when the failure points to setup.

  1. Rerun the failing case when timing or order could matter. Treat a passing

rerun as evidence of intermittent behavior and keep the original failure.

  1. Report the command, failed cases or failed build step, result bundle if

produced, and the evidence for the likely cause.

Result Bundle Inspection

When console output alone is not enough, read the .xcresult bundle instead

of rerunning:

For swift test, use console output, --filter reruns, and --xunit-output

when a machine-readable report is needed.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.