build-graph-for-xcode icon indicating copy to clipboard operation
build-graph-for-xcode copied to clipboard

Build Graph for Xcode

Build graph – the essential tool to analyze the compilation time of a multi-module app.

The app shows the compilation order for modules and links between them, allowing the filter of any step.

Verified for Xcode 16.3

More info

HeaderLight

How to use

  • Open Xcode with your project, clean, and build from scratch
  • Launch Build Graph, give access to read files at Derived Data
  • Select your project in the left panel

Modules Structure

  • Build Graph Release – target for release, including FireBase.
  • Build Graph Debug – target for development purpose

Modules:

  • App – joins feature modules in the app
  • UI – main app features
    • Projects – left panel with project selection
    • Details – center panel that draws a graph
    • Filters– right panel that allows to filter graph
  • Domain – infrastructure module with parsing domain
    • BuildParser – reads .xcactivitylog files with compilation information
    • GraphParser – reads target-graph file with dependencies between modules
    • Snapshot – samples of different Xcode's builds
  • XCLogParser – fork that doesn't parse String and stays on Substring as long as possible to speedup the parsing

Contribution

Each new version of Xcode can break parsing. You can try to fix and suggest PR.