Xcode ui test stabilizer

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

Xcode ui test stabilizer is an AI agent skill from the GitHub repository Xopoko/build-swift-apps. Build and stabilize Xcode UI end-to-end tests with XCUIApplication/xcodebuild for new or unreliable automation, covering environment setup, focus/input reliability, waits, logs, attachments, and flakiness triage.

How to use this skill

Skill file

Xcode UI Test Stabilizer

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. Identify the user-visible state that proves the flow worked. Match on stable

accessibility identifiers and wait for a state change with a bounded timeout.

  1. Reproduce the failing test on its scheme and destination. Keep the result

bundle and use failure screenshots and app logs to distinguish focus, input,

and app failures.

  1. Use test fixtures for prerequisites outside the flow. Exercise input,

approvals, persistence, or window behavior when the test is meant to cover it.

  1. Rerun under the conditions that exposed the failure. Report the run count and

any remaining failures.

See the UI test playbook for the focused

xcodebuild command and common XCTest failure modes.

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.