Skip to content

fix: tolerate missing cache metrics in Xcode logs#251

Open
FerAlquiciraInEtsy wants to merge 1 commit into
MobileNativeFoundation:masterfrom
etsy:fix/xcode-26-4-cache-metrics
Open

fix: tolerate missing cache metrics in Xcode logs#251
FerAlquiciraInEtsy wants to merge 1 commit into
MobileNativeFoundation:masterfrom
etsy:fix/xcode-26-4-cache-metrics

Conversation

@FerAlquiciraInEtsy
Copy link
Copy Markdown

@FerAlquiciraInEtsy FerAlquiciraInEtsy commented Apr 27, 2026

Summary

Fixes decoding failures for newer Xcode activity logs where cache metric fields such as clangCacheHits may be omitted.

Changes

  • Makes legacy cache metric fields optional during decoding.
  • Uses default values (0) when fields are missing.
  • Keeps existing behavior unchanged when fields are present.

Problem

Some newer Xcode log formats can omit these cache metrics, causing decoding errors such as:

keyNotFound("clangCacheHits")

Result

Improves compatibility with newer Xcode-generated logs while preserving support for older formats.

Signed-off-by: FerAlquiciraInEtsy <lalquicira@etsy.com>
@FerAlquiciraInEtsy FerAlquiciraInEtsy force-pushed the fix/xcode-26-4-cache-metrics branch from bf28ab6 to b10c476 Compare April 27, 2026 17:41
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