본문으로 건너뛰기
Skillpedia
모바일 앱5.9k · #14546

migrate

하는 일

이 스킬은 기존 Xcode 앱을 Tuist로 옮기는 과정을 안내합니다. Tuist는 코드에서 Xcode 프로젝트를 만드는 도구입니다. 프로젝트 설정을 코드로 관리하려는 iOS와 macOS 팀을 위한 스킬입니다.

사용하는 경우

  • ✓기존 iOS나 macOS 앱에 Tuist를 도입하고 싶을 때.
  • ✓직접 편집한 Xcode 프로젝트를 생성 기반 프로젝트로 바꾸고 싶을 때.
  • ✓외부 의존성과 빌드 설정을 Tuist 파일에 옮겨야 할 때.

스킬 링크

https://github.com/tuist/tuist/blob/main/skills/skills/migrate/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/tuist/tuist/blob/main/skills/skills/migrate/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“직접 편집한 기존 Xcode 아이폰 앱을 Tuist로 옮기고, 여전히 빌드되는지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 현재 앱을 기준선으로 먼저 빌드하고, 타깃과 의존성을 정리한 뒤, Tuist 프로젝트 파일을 작성하고, 워크스페이스를 생성해 앱이 빌드되고 실행될 때까지 문제를 고칩니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Migrating to Tuist Generated Projects

Quick Start

  1. Baseline build and run the app with xcodebuild.
  2. Inventory targets, build settings, and external dependencies.
  3. Create Tuist.swift, Project.swift, and Tuist/Package.swift.
  4. Extract settings into .xcconfig files and wire them in Project.swift.
  5. Generate and build: tuist generate --no-open then xcodebuild build.
  6. 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.swift and Tuist.swift
  • Tuist/Package.swift for external dependencies
  • .xcconfig files (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.

  • .intentdefinition files belong in sources, not resources.
  • .xcstrings should remain the primary localization source. Avoid double-including .strings or .stringsdict from overlapping globs.
  • Use .folderReference for bundles like Settings.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") and Bundle.module usage.
  • File-system-synchronized groups: avoid over-excluding directories; compare with the pbx if a type vanishes.
  • Invalid bundle identifiers: override with PackageSettings or 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: .xcstrings colliding with .strings globs.
  • Undefined symbols: missing SDK frameworks or dependency products.
  • Unrecognized selector at launch: ObjC categories in static frameworks were stripped. Add -ObjC to OTHER_LDFLAGS or -force_load for 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.swift and why
  • Any exclusions or overrides (and the reason)
자주 묻는 질문

앱이 실제로 실행되는지도 확인하나요?

네. 빌드를 검증한 뒤 시뮬레이터에서 앱을 실행합니다.

어떤 파일을 만드나요?

프로젝트와 Tuist 설정 파일, 의존성용 패키지 파일, 선택 사항인 빌드 설정 파일을 만듭니다.

기록을 남기나요?

네. 결정 사항과 수정 내용을 적은 짧은 마이그레이션 로그를 작성합니다.

상세 정보

작성자의 원본 설명

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
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬