migrate
यह क्या करती है
यह स्किल मौजूदा Xcode ऐप को Tuist में ले जाने का मार्गदर्शन देती है, जो code से Xcode प्रोजेक्ट बनाने वाला टूल है। यह उन iOS और macOS टीमों के लिए है जो अपना प्रोजेक्ट सेटअप code में प्रबंधित करना चाहती हैं।
कब इस्तेमाल करें
- ✓जब आप किसी मौजूदा iOS या macOS ऐप के लिए Tuist अपनाना चाहें।
- ✓जब आप हाथ से संपादित Xcode प्रोजेक्ट को generated प्रोजेक्ट में बदलना चाहें।
- ✓जब आपको बाहरी dependencies और build settings को Tuist फ़ाइलों में रखना हो।
Skill का लिंक
https://github.com/tuist/tuist/blob/main/skills/skills/migrate/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे मौजूदा iPhone ऐप को हाथ से संपादित Xcode प्रोजेक्ट से Tuist में ले जाने में मदद कीजिए, और जाँचिए कि वह अब भी build होता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट मौजूदा ऐप को बेसलाइन के रूप में build करता है, targets और dependencies की सूची बनाता है, Tuist की प्रोजेक्ट फ़ाइलें लिखता है, workspace generate करता है, और build समस्याएँ तब तक ठीक करता है जब तक ऐप build और चल न जाए।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Migrating to Tuist Generated Projects
Quick Start
- Baseline build and run the app with xcodebuild.
- Inventory targets, build settings, and external dependencies.
- Create
Tuist.swift,Project.swift, andTuist/Package.swift. - Extract settings into
.xcconfigfiles and wire them inProject.swift. - Generate and build:
tuist generate --no-openthenxcodebuild build. - Fix build issues, regenerate, and validate runtime on a simulator.
Preflight Checklist
- Primary app scheme and any extension/test schemes
- Targets list (app, extensions, tests, helper tools)
- Deployment targets and bundle identifiers
- Info.plist locations and entitlements
- Custom build settings (per target and per configuration)
- External dependencies (SPM, XCFrameworks, local packages)
- Build scripts (SwiftGen, Sourcery, codegen)
- Runtime validation plan (simulator destination and launch command)
Outputs
Project.swiftandTuist.swiftTuist/Package.swiftfor external dependencies.xcconfigfiles (optional but recommended)- Build and runtime validation notes
- A short migration log of decisions and fixes
Migration Workflow
1. Baseline the project
Start by proving the current project builds and runs. Capture the command you use so the generated workspace can be validated the same way.
xcodebuild build \
-project App.xcodeproj \
-scheme App \
-configuration Debug \
-destination "generic/platform=iOS Simulator" \
-derivedDataPath DerivedDataBaseline
2. Map targets and settings
List every target and its role. Extract build settings into .xcconfig files when they are large or shared across targets. Keep deployment targets and bundle identifiers identical to the original project to avoid runtime surprises.
3. Add Tuist manifests
Create the manifests and keep them minimal and close to the existing project.
Tuist.swift: enable generation options you need and keep them explicit.Project.swift: define targets, sources, resources, scripts, and dependencies.Tuist/Package.swift: list external dependencies and map product types.
Use .external for third-party dependencies to keep the graph consistent.
4. Handle sources and resources carefully
Be precise here. Small mistakes often cause large failures later.
.intentdefinitionfiles belong insources, notresources..xcstringsshould remain the primary localization source. Avoid double-including.stringsor.stringsdictfrom overlapping globs.- Use
.folderReferencefor bundles likeSettings.bundle. - If a resource bundle is missing, ensure the package target declares
.process("Resources").
5. Generate and build
tuist install
tuist generate --no-open
xcodebuild build \
-workspace App.xcworkspace \
-scheme App \
-configuration Debug \
-destination "generic/platform=iOS Simulator" \
-derivedDataPath DerivedDataTuist
6. Resolve build issues iteratively
Common fixes you will likely need:
- Missing SDK frameworks: add
.sdk(name: ..., type: .framework). - SPM resource bundles: verify
.process("Resources")andBundle.moduleusage. - File-system-synchronized groups: avoid over-excluding directories; compare with the pbx if a type vanishes.
- Invalid bundle identifiers: override with
PackageSettingsor vendor a local package. - Generated sources: ensure codegen outputs (SwiftGen/Sourcery) are part of the build.
7. Validate runtime
A build is not enough; launch the app on a simulator.
xcrun simctl boot "iPhone 17 Pro"
xcrun simctl install booted DerivedDataTuist/Build/Products/Debug-iphonesimulator/App.app
xcrun simctl launch booted com.example.app
Common Failure Patterns
- Type not found: a source file or entire directory was excluded accidentally.
- Copy Bundle Resources errors: Swift files are being treated as resources; fix the resource globs.
- Localization conflicts:
.xcstringscolliding with.stringsglobs. - Undefined symbols: missing SDK frameworks or dependency products.
- Unrecognized selector at launch: ObjC categories in static frameworks were stripped. Add
-ObjCtoOTHER_LDFLAGSor-force_loadfor the library that defines the category. - Runtime crash on launch: mismatched bundle id, missing entitlements, or miswired resources.
Migration Notes to Capture
- What changed in
Project.swiftand why - Any exclusions or overrides (and the reason)
अक्सर पूछे जाने वाले सवाल
क्या यह जाँचती है कि ऐप अब भी चलता है?
हाँ। यह build को सत्यापित करती है और फिर ऐप को simulator पर चलाती है।
यह कौन सी फ़ाइलें बनाती है?
प्रोजेक्ट और Tuist configuration फ़ाइलें, dependencies के लिए एक package फ़ाइल, और चाहें तो build settings की फ़ाइलें।
क्या यह कोई रिकॉर्ड रखती है?
हाँ। यह फ़ैसलों और सुधारों का एक छोटा migration log लिखती है।
जानकारी
लेखक का मूल विवरण
Migrates existing Xcode projects to Tuist generated workspaces with build and run validation, external dependency mapping, and migration checklists. Use when adopting Tuist for an existing app or converting a hand-edited Xcode project to generated projects.
repo: tuist/tuist
लोकप्रियता
- GitHub स्टार
- 5.9k
- रैंकिंग में स्थान
- #14546
- लाइसेंस
- —
- अपडेट की गई
- 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 बनाता है।