Root path for Tuist Project

Question or problem

Tell us about what your question is, or any issue you might have run into.

I’m curios whether there any variable for Build Phase which points to Tuist root directory? I’m trying to create SwiftLint script and there is .swiftlint.yml file at the root of projects.

My directory structure is

- Tuist.swift
- iOS
    - Project.swift
- Features
    - Core
        - Project.swift

So $SRCROOT is differs for Core and iOS projects

Expectation

If an issue: Tell us what you were expecting
If a how-to: Tell us how you’d have expected Tuist to help you

I’m expecting some $TUIST_ROOT_DIR variable or something which would help in this scenario

Context

  • Tuist version: 4.46.1

Give us some context on what you were trying to do when you stumbled upon the need to create this topic in the community forum.

Reproduction (mandatory for problems)

Include a reproducible project and steps to reproduce the issue. If you have logs, include them too.

Nevermind, $WORKSPACE_DIR did the job! :grinning:

1 Like