Skip to content

fix: group untagged sections under one target and show file counts in the HTML report - #258

Open
alielsokary wants to merge 2 commits into
MobileNativeFoundation:masterfrom
alielsokary:fix/untagged-sections-as-targets
Open

alielsokary wants to merge 2 commits into
MobileNativeFoundation:masterfrom
alielsokary:fix/untagged-sections-as-targets

Conversation

@alielsokary

Copy link
Copy Markdown

Two fixes for the HTML report on xcodebuild logs.

Untagged sections were reported as targets (#220, #202)

In a flattened log, sections without an (in target ... from project ...) tag were appended to the root and typed as targets. Xcode 26 and later emit one such section per explicit module scan, so a single build produced tens of thousands of fake targets, one HTML page each. They are now grouped under a single Build system target.

C files and Swift files always showed 0 on the index page (#161)

targets.js only carries the main step and the targets, so counting detail steps on the index page always gave 0. The reporter now writes the counts into top_files.js.

Measured on a ResidentApp Debug build log, Xcode 27.0:

0.2.49 this branch
targets 22,355 109
HTML files 44,712 222
HTML size 1.4 GB 241 MB
C files 0 782

Swift files still shows 0 on Xcode 14+ logs because SwiftCompile steps are not typed as swiftCompilation yet. #256 fixes that and the count follows from it.

In flattened xcodebuild logs, sections without an (in target ...) tag were
appended to the root and reported as targets. Xcode 26 and later emit tens
of thousands of such sections (explicit module scans), so the HTML report
grew to 1.4GB and the target list and Slowest targets chart were wrong.
Group them under a single Build system target.

Signed-off-by: Ali Elsokary <ali.elsokary.w@gmail.com>
The index page only loads the main step and the targets, so counting
detail steps there always gave 0. Write the counts from the reporter
instead.

Signed-off-by: Ali Elsokary <ali.elsokary.w@gmail.com>
@alielsokary
alielsokary force-pushed the fix/untagged-sections-as-targets branch from 4f21fb3 to 7a1c622 Compare September 21, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant