Created
April 11, 2023 18:38
-
-
Save acious/a253821459ca8f360c3d245605da498d to your computer and use it in GitHub Desktop.
Tuist Transitive setting example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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