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
- Classify the failure stage:
- generation:
tuist generateortuist install - build: generated
.xcworkspaceexists butxcodebuildfails - runtime: app builds but crashes or behaves incorrectly
- Capture the exact command, Tuist version, Xcode version, platform, scheme,
and relevant manifest snippets.
- Reproduce on the local project first. If the issue is broad or suspicious,
retry with the latest Tuist release through mise.
- 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
- Missing
tuist installbefore generation. - Source/resource globs that omit files or include Swift files as resources.
- Package product type mismatches: static vs dynamic frameworks/libraries.
- Missing SDK dependencies, entitlements, Info.plist values, or resource bundles.
- Objective-C categories stripped from static dependencies; verify
-ObjCor
targeted -force_load.
- Generated workspace drift after manifest edits; regenerate before judging.
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:
- minimal reproduction archive
- failing command and output
- Tuist/Xcode/macOS versions
- whether generation, build, or runtime fails
- what local configuration causes were ruled out
Output
Return the failure stage, root cause, exact fix or next command, and proof from
the latest generation/build/launch attempt.