generated-projects
यह क्या करती है
यह स्किल आपके AI को Tuist द्वारा बने Xcode workspace के भीतर काम करने में मदद करती है, जिसमें generate करना, build करना और tests चलाना शामिल है। यह उन iOS और macOS डेवलपर के लिए है जो Tuist इस्तेमाल करते हैं।
कब इस्तेमाल करें
- ✓जब आप Tuist से बने प्रोजेक्ट में काम करें और उसे generate या build करना हो।
- ✓जब आप generated workspace में किसी एक target या test case के tests चलाना चाहें।
- ✓जब आप folders और target tags को ऐसे व्यवस्थित करना चाहें कि प्रोजेक्ट पर फ़ोकस करना आसान रहे।
Skill का लिंक
https://github.com/tuist/tuist/blob/main/skills/skills/generated-projects/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Xcode खोले बिना Tuist workspace generate कीजिए और मेरे payments target के tests चलाइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट workspace के लिए generation और build कमांड चलाता है, buildable folder सेटअप इस्तेमाल करता है ताकि नई फ़ाइलें उठ जाएँ, और ज़रूरत हो तो generation को एक target या tag तक सीमित करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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.
अक्सर पूछे जाने वाले सवाल
क्या फ़ाइल जोड़ने के बाद दोबारा generate करना पड़ता है?
जब प्रोजेक्ट buildable folders इस्तेमाल करता है तब नहीं, क्योंकि वे फ़ाइल सिस्टम के साथ सिंक रहते हैं।
क्या यह प्रोजेक्ट का सिर्फ़ एक हिस्सा generate कर सकती है?
हाँ। आप एक tag group या चुने हुए targets generate कर सकते हैं।
क्या इसके लिए Xcode चाहिए?
हाँ। यह xcodebuild से generated Xcode workspace को build और test करती है।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 5.9k
- रैंकिंग में स्थान
- #14545
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
analyze-selective-testing
5.9kयह आपके एजेंट को जाँचने देती है कि Xcode selective testing ने बिना बदले test targets को कितनी अच्छी तरह छोड़ा, और रनों के बीच छोड़ने में बदलाव क्यों हुआ।
compare-builds
5.9kयह आपके एजेंट को दो Xcode build runs की तुलना करने देती है, ताकि धीमे builds, cache उपयोग में बदलाव और नई समस्याएँ पता चलें।
compare-bundles
5.9kयह आपके एजेंट को दो app bundles की तुलना करने देती है, ताकि आकार में बदलाव, जुड़ी या हटी फ़ाइलें और platform के अंतर पता चलें।
compare-cache-runs
5.9kयह आपके एजेंट को दो cache runs की तुलना करने देती है, ताकि cache hit दरों में बदलाव पता चले और यह समझा जा सके कि cache क्यों अमान्य हुआ।
मिलती-जुलती skills
android-clean-architecture
280kयह आपके एजेंट को Android projects को व्यवस्थित तरीके से संभालने देता है। यह code को ऐसा ढांचा देता है कि उसकी देखभाल और नए features जोड़ना आसान हो।
compose-multiplatform-patterns
280kKMP projects में Compose Multiplatform और Jetpack Compose patterns इस्तेमाल करने में आपके एजेंट की मदद करता है। इसमें state, navigation, theming और performance शामिल हैं।
dart-flutter-patterns
280kयह आपके एजेंट को Dart और Flutter apps के लिए code लिखने देता है। यह आधुनिक patterns इस्तेमाल करके मज़बूत और आसानी से संभलने वाले apps बनाता है।