Tuist generation doctor

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

Tuist generation doctor is an AI agent skill from the GitHub repository Xopoko/build-swift-apps. Diagnose Tuist generation, build, and launch failures when `tuist generate`, generated Xcode workspaces, or apps fail or diverge from the source project.

How to use this skill

Skill file

Tuist Generation Doctor

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.

Use this skill to determine whether a Tuist-generated workspace problem is a

project configuration issue, a dependency wiring issue, or a Tuist bug.

Triage Route

  1. Classify the failure stage:
  1. Capture the exact command, Tuist version, Xcode version, platform, scheme,

and relevant manifest snippets.

  1. Reproduce on the local project first. If the issue is broad or suspicious,

retry with the latest Tuist release through mise.

  1. Reduce to a minimal reproduction before filing or fixing a Tuist-level bug.

Commands

cd "$PROJECT_DIR"
tuist version
tuist install
tuist generate --no-open

For build-stage failures, use the exact generated workspace. For an iOS simulator build:

xcodebuild build \
  -workspace "$WORKSPACE" \
  -scheme "$SCHEME" \
  -destination "platform=iOS Simulator,id=$UDID" \
  -derivedDataPath "$PROJECT_DIR/DerivedData"

For runtime-stage failures, use the same simulator UDID for the build destination, install, and launch:

xcrun simctl bootstatus "$UDID" -b &&
  xcrun simctl install "$UDID" "$APP_PATH" &&
  xcrun simctl launch --console-pty "$UDID" "$BUNDLE_ID"

Common Causes

targeted -force_load.

When It Looks Like A Tuist Bug

Recheck the minimal reproduction against a newer release without changing the project's pinned version. If it persists, report:

Output

Return the failure stage, root cause, exact fix or next command, and proof from

the latest generation/build/launch attempt.

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.