generated-projects
What it does
This skill helps your AI work inside an Xcode workspace that Tuist generates, including generating, building and running tests. It is for iOS and macOS developers who use Tuist.
When to use it
- ✓When you work in a project generated by Tuist and need to generate or build it.
- ✓When you want to run tests for a single target or test case in a generated workspace.
- ✓When you want to organize folders and target tags so a project stays easy to focus.
Skill link
https://github.com/tuist/tuist/blob/main/skills/skills/generated-projects/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Generate the Tuist workspace without opening Xcode and run the tests for my payments target.”
5 new skills a week. 1 minute to read.
How it works
The agent runs the generation and build commands for the workspace, uses the buildable folder setup so new files are picked up, and scopes generation to a target or tag when needed.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Using Tuist Generated Projects
Quick Start
# Generate workspace without opening Xcode
tuist generate --no-open
# Build a scheme with xcodebuild
xcodebuild build -workspace App.xcworkspace -scheme App
# Run tests with xcodebuild
xcodebuild test -workspace App.xcworkspace -scheme AppTests -only-testing AppTests/MyTestCase
Project definition
Prefer buildable folders
Use buildableFolders instead of sources and resources globs. Buildable folders stay synchronized with the file system, so adding or removing files does not require regeneration.
let target = Target(
name: "App",
buildableFolders: [
"App/Sources",
"App/Resources",
]
)
Tag targets for focus
Use target tags to group areas of the project, for example:
tag:team:*tag:feature:*tag:layer:*
These tags make it easier to scope generation and testing later.
Example target metadata with tags:
let target = Target(
name: "PaymentsUI",
metadata: .metadata(tags: [
"tag:team:commerce",
"tag:feature:payments",
"tag:layer:ui",
])
)
When working on a focused area, generate only what you need:
tuist generate tag:feature:payments
tuist generate PaymentsUI PaymentsTests
Align build configurations
Keep build configurations aligned between the project and external dependencies. Use PackageSettings(settings: .settings(configurations: [])) to mirror project configurations; mismatches emit warnings.
Workflows
Generate intentionally
- Use
tuist generate --no-openin automation and scripts to avoid launching Xcode. - Regenerate when any manifest changes (or the dependency graph changes).
- If generation fails due to missing products, run
tuist installto resolve dependencies and retry.
Build with xcodebuild
Use xcodebuild build against the generated workspace and scheme.
xcodebuild build \
-workspace App.xcworkspace \
-scheme App \
-destination "generic/platform=iOS Simulator"
Test with xcodebuild
Use xcodebuild test for running tests locally. Prefer it over tuist test because tuist test regenerates the project on each invocation, which slows down iteration.
To optimize test run time:
- Use
--only-testingto run only the specific test suite or test case you are working on, instead of the full target. - Pick the scheme with the fewest compilation targets that still includes the test target you need. This minimizes build time before tests run.
# Run a specific test suite
xcodebuild test \
-workspace App.xcworkspace \
-scheme AppTests \
-only-testing AppTests/MyTestSuite
# Run a single test case
xcodebuild test \
-workspace App.xcworkspace \
-scheme AppTests \
-only-testing AppTests/MyTestSuite/testMyFunction
Guidelines
- Keep
buildableFolderspaths aligned to the target's real file system layout. - Avoid overlapping
buildableFolderswithsourcesorresourcesglobs in the same target. - Open Xcode manually when needed after running
tuist generate --no-open.
Troubleshooting
Static side effects warnings: adjust product types deliberately. Use Target.product for local targets and PackageSettings(productTypes:) for external products. Making everything dynamic with .framework can compile and run, but it may hurt launch time. Prefer static products (static frameworks or libraries) when possible and when they do not introduce side effects.
Objective-C dependency crashes: add -ObjC or -force_load via OTHER_LDFLAGS on consuming targets as needed. Reference: https://tuist.dev/en/docs/guides/features/projects/dependencies#objectivec-dependencies.
FAQ
Do I need to regenerate after adding a file?
Not when the project uses buildable folders, since they stay in sync with the file system.
Can it generate just part of a project?
Yes. You can generate a single tag group or specific targets.
Does it need Xcode?
Yes. It builds and tests the generated Xcode workspace with xcodebuild.
Details
Original description by the author
Guides day-to-day work in Tuist-generated Xcode workspaces, including generation, build and test commands, and buildable folders. Use when working in a Tuist-generated project or when users mention `tuist generate`, `xcodebuild test`, or generated workspaces.
repo: tuist/tuist
Popularity
- GitHub stars
- 5.9k
- Ranking position
- #14545
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
analyze-selective-testing
5.9kHelps your agent check how well Xcode selective testing skipped unchanged test targets, and find out why skipping changed between runs.
compare-builds
5.9kHelps your agent compare two Xcode build runs to find slower builds, changes in cache use and new issues.
compare-bundles
5.9kHelps your agent compare two app bundles to find size changes, added or removed files and platform differences.
compare-cache-runs
5.9kHelps your agent compare two cache runs to find changes in cache hit rates and explain why the cache was invalidated.
Similar skills
android-clean-architecture
280kMakes your agent organize Android projects efficiently. It structures the code to make maintenance and new feature development easier.
compose-multiplatform-patterns
280kHelps your agent use Compose Multiplatform and Jetpack Compose patterns in KMP projects, covering state, navigation, theming, and performance.
dart-flutter-patterns
280kMakes your agent write code for Dart and Flutter apps. It uses modern patterns to create robust and manageable apps.