How leptos-null/classdumpctl works
Project type and purpose
• This is a native command-line tool (classdumpctl) written in Objective-C/SwiftPM that dumps Objective-C class and protocol headers.
• It depends on the ClassDumpRuntime library to inspect Mach-O images and the dyld_shared_cache.
• Core use cases: single class or protocol inspection, library/framework dumping, full shared-cache dumping with concurrency.
File structure
• Top-level:
– .github/workflows: CI build and release pipelines
– .swiftpm + Package.swift: Swift Package Manager manifest and Xcode integration
– ClassDumpRuntime (git submodule): underlying parsing library
– control, entitlements.plist, Makefile, LICENSE.md
• Patterns:
– CLI “frontend” (argument parsing, orchestration)
– Library “backend” (ClassDumpRuntime handles low-level Mach-O/dyld parsing)
– Output formatting layer (ANSI vs. HTML)
– Concurrency/job manager (when dumping entire cache)
• Deployment/config: SwiftPM for build, GitHub Actions for CI/CD.
README for insights
• Usage modes: single class/protocol, per-image dump, full cache dump with -j concurrency.
• Flags control “strip” behaviors (protocol conformance, overrides, duplicates).
• Architecture hints: core runtime library + formatting + file I/O + parallel processing.
Key advice
• Be detailed but avoid over-fragmenting: group low-level POSIX calls under “File I/O Module.”
• Git submodule relationship for ClassDumpRuntime in a side-note.