build-graph-for-xcode
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
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 appUI– main app featuresProjects– left panel with project selectionDetails– center panel that draws a graphFilters– right panel that allows to filter graph
Domain– infrastructure module with parsing domainBuildParser– reads.xcactivitylogfiles with compilation informationGraphParser– readstarget-graphfile with dependencies between modulesSnapshot– 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.