Xcode 패키지 통합으로 생성된 프로젝트
Tuist Projects에서 패키지를 사용할 때 Xcode의 기본 통합을 사용하는 경우, 패키지를 추가할 때 URL 대신 레지스트리 식별자를 사용해야 합니다:
swift
import ProjectDescription
let project = Project(
name: "MyProject",
packages: [
// Source control resolution
// .package(url: "https://github.com/pointfreeco/swift-composable-architecture", from: "0.1.0")
// Registry resolution
.package(id: "pointfreeco.swift-composable-architecture", from: "0.1.0")
],
targets: [
.target(
name: "App",
product: .app,
bundleId: "dev.tuist.App",
dependencies: [
.package(product: "ComposableArchitecture"),
]
)
]
)
Tip
모든 패키지를 레지스트리 식별자로 추가할 필요는 없습니다. 프로젝트가 생성된 후 tuist registry setup를 실행하면 소스 제어 URL로 선언된 패키지를 레지스트리에서 해결하도록 Xcode를 추가로 구성하며, 이는 registryEnabled만으로는 수행되지 않습니다. 자세한 내용은 소스 제어 패키지 해결을 참조하세요.