Generating the dependency graph

When projects grow, it becomes hard to visualize the dependencies between all the targets that are part of the project. Fortunately, Tuist provides a command, tuist graph, that loads your project dependencies graph and exports it in a representable format.

Being in a directory that contains a workspace or project manifest, run the following command:

tuist graph
Copy the content

The command will output a human-readable file, graph.dot that describes the dependencies graph using the DOT description language.

A visual representation of the graph

Graphviz is a command line tool that take the .dot graph and convert it into an image.

brew install graphviz
dot -Tpng graph.dot > graph.png
Copy the content

Alternatively, you can use online services like this one that renders your graph on a website.