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

generated-projects

하는 일

이 스킬은 에이전트가 Tuist가 생성한 Xcode 워크스페이스에서 작업하도록 돕습니다. 생성, 빌드, 테스트 실행이 포함됩니다. Tuist를 쓰는 iOS와 macOS 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Tuist로 만든 프로젝트에서 생성하거나 빌드해야 할 때.
  • ✓생성된 워크스페이스에서 한 타깃이나 테스트 케이스만 테스트하고 싶을 때.
  • ✓프로젝트를 쉽게 집중해서 볼 수 있도록 폴더와 타깃 태그를 정리하고 싶을 때.

스킬 링크

https://github.com/tuist/tuist/blob/main/skills/skills/generated-projects/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/tuist/tuist/blob/main/skills/skills/generated-projects/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분.

작동 방식

에이전트가 워크스페이스의 생성과 빌드 명령을 실행하고, 새 파일이 자동으로 반영되도록 빌드 가능한 폴더 설정을 사용하며, 필요하면 타깃이나 태그 단위로 생성 범위를 좁힙니다.

기술 내용 (원본 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-open in 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 install to 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-testing to 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 buildableFolders paths aligned to the target's real file system layout.
  • Avoid overlapping buildableFolders with sources or resources globs 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.

자주 묻는 질문

파일을 추가한 뒤 다시 생성해야 하나요?

빌드 가능한 폴더를 쓰는 프로젝트라면 파일 시스템과 자동으로 동기화되므로 다시 생성할 필요가 없습니다.

프로젝트의 일부만 생성할 수 있나요?

네. 태그 그룹 하나나 특정 타깃만 생성할 수 있습니다.

Xcode가 필요한가요?

네. 생성된 Xcode 워크스페이스를 xcodebuild로 빌드하고 테스트합니다.

상세 정보

작성자의 원본 설명

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬