Skip to content

fix(apple): join NIBArchive nibValues resource keys in asset catalog inspection - #2249

Closed
Bappaditya-kuilya wants to merge 1 commit into
morluto:mainfrom
Bappaditya-kuilya:fix/apple-nibarchive-resource-keys
Closed

Bappaditya-kuilya wants to merge 1 commit into
morluto:mainfrom
Bappaditya-kuilya:fix/apple-nibarchive-resource-keys

Conversation

@Bappaditya-kuilya

Copy link
Copy Markdown

Fixes #2176.

collectInterfaceBuilderResourceKeys only scanned top-level node attributes, so recognized fields nested under nibValues (NIBArchive representation, e.g. NSImageName) never produced resource_key_matches. Keyed-archive resources were unaffected because that decoder flattens fields to the top level.

Change is scoped to the collector: same recognized set, same nonempty-string and archive-provenance guards, field reported as the inner key name. No decoder, schema, or projection changes.

Validation (Linux):

  • New collector unit test (nibValues match + title-only negative control).
  • New bundle workflow tests with the issue fixture bytes: unmatched with no catalog, matched with one catalog record.
  • Suites: src/artifacts/apple + src/domain/apple, 182 passed. tsc, oxlint, oxfmt clean.
  • Full CLI repro needs macOS (nondarwin assetutil guard); service-level path exercised instead via injected runAssetUtil.

…inspection

collectInterfaceBuilderResourceKeys only scanned top-level node
attributes, so recognized fields nested under nibValues (NIBArchive
representation, e.g. NSImageName) never produced resource_key_matches.

Fixes morluto#2176.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@morluto

morluto commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Thanks @Bappaditya-kuilya for the independent fix and NIBArchive fixture coverage. Consolidated #2176 in the earlier active PR #2248, retaining its original contributor commit and folding #2256's producer-boundary normalization. That gives the resource fields one parsed owner and avoids separate nested-map interpretation in the consumer. Review also added a parsed resource-kind guard and a rooted control-node regression. The final zero/one/multiple-rendition and public CLI/MCP/filesystem coverage passes (49 tests), with source/docs checks green. Closing this overlapping implementation so review stays on #2248; your independent contribution is acknowledged there.

@morluto morluto closed this Oct 12, 2026
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(apple): asset catalog inspection omits recognized NIBArchive resource keys

2 participants