Tuist can be configured through a
When Tuist is executed, it traverses up the directories to find a
Defining a configuration manifest is not required but recommended to ensure a consistent behavior across all the projects that are part of the repository.
We recommend creating the
TuistConfig.swift in the root directory of the repository. For example, let's say we have the following directory scheme:
/.git.gitignore/TuistConfig.swift # Configuration manifest/Framework/Project.swift/App/Project.swift
That way, when Tuist runs in any of the subdirectories, it'll use the root configuration.
The structure is similar to the project manifest. We need to create a root variable,
config of type
import ProjectDescriptionlet config = TuistConfig(compatibleXcodeVersions: ["10.3"],generationOptions: [.xcodeProjectName("SomePrefix-\(.projectName)-SomeSuffix")])
It allows configuring Tuist and share the configuration across several projects.
|Compatible Xcode versions|
Set the versions of Xcode that the project is compatible with.
Options to configure the generation of Xcode projects
This object represents the versions of Xcode the project is compatible with. If a developer tries to generate a project and its selected Xcode version is not compatible with the project, Tuist will yield an error:
|The project is compatible with any version of Xcode.|
|The project is compatible with a list of Xcode versions.|
Generation options allow customizing the generation of Xcode projects.
|Customise the name of the generated .xcodeproj.|
Allows a string with interpolated properties to be specified. For example, "Prefix-(.projectname)".
|The name of the current project.|