Skip to content

Instantly share code, notes, and snippets.

@acious
Created April 11, 2023 18:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acious/a253821459ca8f360c3d245605da498d to your computer and use it in GitHub Desktop.
Save acious/a253821459ca8f360c3d245605da498d to your computer and use it in GitHub Desktop.
Tuist Transitive setting example
/*
MyApp/
├── A/
│ └── Sources/
│ └── A.swift
├── B/
│ ├── Sources/
│ │ └── B.swift
│ └── TuistDependencies.swift
└── C/
├── Sources/
│ └── C.swift
└── TuistDependencies.swift
*/
==
// B 모듈에서의 의존성 세팅
// MyApp/B/TuistDependencies.swift
import ProjectDescription
let dependencies: [TargetDependency] = [
.project(target: "C", path: "../C", sourceRootPath: "../C", transitive: true),
]
==
// A 모듈에서의 의존성 세팅
// MyApp/A/Project.swift
import ProjectDescription
let project = Project(
name: "A",
targets: [
Target(
name: "A",
platform: .iOS,
product: .framework,
dependencies: [
.target(name: "B"),
]
)
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment