Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
ddcbd80
test: stop looking definitions up by currentName
Mx-Iris Sep 29, 2026
a878a27
docs: record the root cause of A52 and the rule against looking defin…
Mx-Iris Sep 29, 2026
98712b7
Merge branch 'fix/tests-stop-picking-definitions-by-current-name' int…
Mx-Iris Sep 29, 2026
26c9012
build: raise swift-tools-version to 6.3 and swift-syntax to 602..<605
Mx-Iris Sep 29, 2026
d9bcbd6
refactor: group Sources by layer
Mx-Iris Sep 29, 2026
7ba306e
Merge branch 'refactor/group-sources' into next
Mx-Iris Sep 29, 2026
bbd0cf7
refactor: declare the throwing bitPattern initializers in Utilities
Mx-Iris Sep 29, 2026
4d93f32
Merge branch 'refactor/own-throwing-bit-pattern-initializers' into next
Mx-Iris Sep 29, 2026
2e171d4
feat(printing): add a marking mode that labels option-controlled output
Mx-Iris Sep 29, 2026
cfc4191
docs: number the marking mode proposal 0056 and close it out
Mx-Iris Sep 29, 2026
c20e56b
Merge branch 'feature/visibility-regions' into next
Mx-Iris Sep 29, 2026
f646f5e
build: require swift-semantic-string 0.4.0 for VisibilityRegion
Mx-Iris Sep 30, 2026
3ceadf9
fix(inspection): type the private and lazy stored properties of @objc…
Mx-Iris Sep 29, 2026
47395b3
fix(inspection): give private members an ObjC member shape
Mx-Iris Sep 29, 2026
32feff3
docs: record what @objc @implementation classes still hide and how it…
Mx-Iris Sep 29, 2026
f7c189b
docs: record why C-imported typedef types render uncolored and unsear…
Mx-Iris Sep 30, 2026
b00fda8
docs(evolution): propose unifying the reading APIs on ReadingContext
Mx-Iris Sep 30, 2026
a23d52b
refactor(abi): make the ReadingContext form the only implementation o…
Mx-Iris Sep 30, 2026
9c75c40
refactor: call the ReadingContext form at every reading call site
Mx-Iris Sep 30, 2026
9827e1d
test: drop fixture checks the migration turned into self-comparisons
Mx-Iris Sep 30, 2026
17d101e
feat(reading): give ReadingContext a cache scope and move the read-on…
Mx-Iris Sep 30, 2026
3d84ee0
fix(reading): carry the image identity in the cache scope unboxed
Mx-Iris Sep 30, 2026
1cf7253
docs: record the reading-context migration's verification and hand-of…
Mx-Iris Sep 30, 2026
782ebd2
docs: record the reading-context migration's performance acceptance
Mx-Iris Sep 30, 2026
f71972d
docs(evolution): land the reading-context migration as one pull request
Mx-Iris Sep 30, 2026
2f07e4c
docs(evolution): link the reading-context migration's pull request
Mx-Iris Sep 30, 2026
e504620
docs: record the 26.6 cache leg rerun on the 28-core machine
Mx-Iris Sep 30, 2026
e20ed99
scripts(ab): run the rendering A/B on prebuilt products with --skip-b…
Mx-Iris Sep 30, 2026
fd90b5d
fix: read optional-returning accessors at the field's own width
Mx-Iris Sep 30, 2026
c5865ec
fix: log unresolvable descriptors and substitution cycles through #log
Mx-Iris Sep 30, 2026
6996ba3
docs: record the optional-read and stdout-print fixes
Mx-Iris Sep 30, 2026
b5315f9
docs: number the reading-context migration proposal 0057 and close it…
Mx-Iris Oct 1, 2026
86aa614
Merge pull request #129 from MxIris-Reverse-Engineering/refactor/read…
Mx-Iris Oct 1, 2026
d02d21d
Merge remote-tracking branch 'origin/next' into fix/optional-read-and…
Mx-Iris Oct 1, 2026
0901317
docs: number the optional-read section 74 and point it at proposal 0057
Mx-Iris Oct 1, 2026
ee3e7e5
Merge pull request #130 from MxIris-Reverse-Engineering/fix/optional-…
Mx-Iris Oct 1, 2026
01b57f7
Merge branch 'chore/rendering-harness-skip-build' into next
Mx-Iris Oct 1, 2026
514bb4b
docs: record the rendering A/B --skip-build follow-up as merged
Mx-Iris Oct 1, 2026
e40ae0e
fix(symbols): file standalone symbols at their file offsets, keep STA…
Mx-Iris Oct 2, 2026
995820b
fix(thunk-analysis): use a symbol value as the address it already is
Mx-Iris Oct 2, 2026
3a256d5
scripts(ab): take whichever archived 26.x cache directory the machine…
Mx-Iris Oct 2, 2026
0fa346b
docs: record the executable symbol offset and STABS fixes as section 75
Mx-Iris Oct 2, 2026
7fd7fe3
Merge branch 'fix/executable-symbol-offsets' into next
Mx-Iris Oct 2, 2026
8b6a681
docs: say what --strip-protocol-conformance strips
Mx-Iris Oct 2, 2026
5ec73b2
build: add install.sh to build swift-section and install it on this m…
Mx-Iris Oct 2, 2026
9eb0524
build: require MachOObjCSection 0.8.108 for dyld cache method list slots
Mx-Iris Oct 3, 2026
118246b
refactor: extract swift-section's commands into SwiftSectionKit
Mx-Iris Oct 3, 2026
bb85ba5
docs: document SwiftSectionKit and the swift-section wrapper split
Mx-Iris Oct 3, 2026
727aa0f
docs: land proposal 0058 (swift-section-kit) as Implemented
Mx-Iris Oct 3, 2026
8491c33
Merge branch 'refactor/swift-section-kit' into next
Mx-Iris Oct 3, 2026
ec9a22a
feat(SwiftSectionKit): say what each declaration dump and objc dump h…
Mx-Iris Oct 4, 2026
9eaa69c
docs: document DumpedDeclaration and propose dump-declaration-identity
Mx-Iris Oct 4, 2026
0f8620a
docs: land proposal 0059 (dump-declaration-identity) as Implemented
Mx-Iris Oct 4, 2026
3b743b6
Merge branch 'feature/dump-declaration-identity' into next
Mx-Iris Oct 4, 2026
a2e3455
test(type-indexing): pin why APINotes Swift spellings are still attri…
Mx-Iris Oct 3, 2026
6a0866c
Merge branch 'docs/c-imported-type-name-survey' into next
Mx-Iris Oct 5, 2026
8cb57c9
feat(SwiftInterface): emit genuine @available attributes in the evolu…
Mx-Iris Sep 1, 2026
a31e69b
feat(SwiftSectionKit): spell an evolution's lifecycles as @available …
Mx-Iris Oct 5, 2026
a62958e
docs: land proposal 0060 (evolution-interface-available-annotations) …
Mx-Iris Oct 5, 2026
7231790
Merge branch 'feature/evolution-interface-available-annotations' into…
Mx-Iris Oct 5, 2026
3d754c2
refactor(MachOFixtureSupport): name archived dyld caches by their ver…
Mx-Iris Oct 5, 2026
b5fc13f
test(IntegrationTests): add archived cache dumps picked by version
Mx-Iris Oct 5, 2026
eee1894
docs: land proposal 0061 (dyld-shared-cache-path-versions) as Impleme…
Mx-Iris Oct 5, 2026
b8f0a03
Merge branch 'refactor/dyld-shared-cache-path-versions' into next
Mx-Iris Oct 5, 2026
873a3dc
refactor(MachOFixtureSupport): give every dyld cache path its version…
Mx-Iris Oct 5, 2026
37b0625
docs: record the version label follow-up to proposal 0061
Mx-Iris Oct 5, 2026
9c3e598
Merge branch 'refactor/dyld-shared-cache-path-versions' into next
Mx-Iris Oct 5, 2026
d8cb491
test(IntegrationTests): run the archived evolution axis over every ma…
Mx-Iris Oct 6, 2026
292f234
fix: keep per-image caches apart for one build in two dyld caches
Mx-Iris Oct 6, 2026
519ddb8
build: require MachOKitExtensions 1.1.0 and MachOKit 0.52.104
Mx-Iris Oct 6, 2026
a771d8e
Merge branch 'fix/old-cache-objc-rebase-crash' into next
Mx-Iris Oct 6, 2026
c35fefb
build: require MachOKitExtensions 1.1.1
Mx-Iris Oct 6, 2026
c5109a4
Merge branch 'fix/subcache-lookup-cache' into next
Mx-Iris Oct 6, 2026
9a8948a
fix: open the system dyld cache once and the archived caches whole
Mx-Iris Oct 6, 2026
95e1b8e
Merge branch 'fix/evolution-test-memory' into next
Mx-Iris Oct 6, 2026
91b6c20
docs: keep the file handle identity fix in the MachOKit fork
Mx-Iris Oct 7, 2026
09447a3
build: require MachOKit 0.54.101
Mx-Iris Oct 7, 2026
433f142
Merge branch 'build/require-machokit-0.54.100' into next
Mx-Iris Oct 7, 2026
fa1d3ad
fix: resolve a dyld cache image's dependencies in its own cache
Mx-Iris Oct 8, 2026
470cb4f
fix: read the ObjC classes simulator frameworks bind to themselves
Mx-Iris Oct 8, 2026
f176636
Merge branch 'fix/cache-root-dependencies' into next
Mx-Iris Oct 8, 2026
5c8a551
Merge branch 'fix/self-bound-objc-ancestors' into next
Mx-Iris Oct 8, 2026
ac2c028
docs: rewrite the 0.20.0 and 0.21.0 changelogs as one-line entries
Mx-Iris Oct 8, 2026
8492ea7
build: build the universal binary the way each SwiftPM engine allows
Mx-Iris Oct 8, 2026
b83afe9
release: 0.22.0
Mx-Iris Oct 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
-c ${{ matrix.configuration }} \
--enable-experimental-prebuilts \
--build-path .build-test-${{ matrix.configuration }} \
--filter '\.(SymbolTestsCoreDumpSnapshotTests|SymbolTestsCoreInterfaceSnapshotTests|SymbolTestsCoreCoverageInvariantTests|STCoreE2ETests|STCoreTests|GenericSpecializationTests|MultiPayloadEnumTests|SymbolicDemanglerDemanglingTests|MalformedSymbolValueTests|ContinuousIntegrationTestFilterTests|MachOImageCacheMembershipTests|SharedCacheResolveTests|SharedCacheResolveSwiftConcurrencyTests|SharedCacheKeyTests|SharedCacheRegistryTests|DependencyLoadNameTests|DependencyClosureTests|FileDependencyLocatorTests|SwiftInterfaceBuilderDependenciesTests|ManglingPrefixTests|MethodDescriptorTests|MethodOverrideDescriptorTests|MethodDefaultOverrideDescriptorTests|ProtocolRequirementTests|ResilientWitnessTests|LargeStackTaskExecutionTests|BoundedConcurrentMapTests|SwiftEvolutionInterfaceBuilderTests|EvolutionCommandValidationTests|DiffCommandValidationTests|ObjCSectionCommandTests|ObjCAPICommandParsingTests|ObjCDumpDiagnosticsTests)(/|$)'
--filter '\.(SymbolTestsCoreDumpSnapshotTests|SymbolTestsCoreInterfaceSnapshotTests|SymbolTestsCoreCoverageInvariantTests|STCoreE2ETests|STCoreTests|GenericSpecializationTests|MultiPayloadEnumTests|SymbolicDemanglerDemanglingTests|MalformedSymbolValueTests|ContinuousIntegrationTestFilterTests|MachOImageCacheMembershipTests|SharedCacheResolveTests|SharedCacheResolveSwiftConcurrencyTests|SharedCacheKeyTests|SharedCacheRegistryTests|DependencyLoadNameTests|DependencyClosureTests|FileDependencyLocatorTests|SwiftInterfaceBuilderDependenciesTests|ManglingPrefixTests|MethodDescriptorTests|MethodOverrideDescriptorTests|MethodDefaultOverrideDescriptorTests|ProtocolRequirementTests|ResilientWitnessTests|LargeStackTaskExecutionTests|BoundedConcurrentMapTests|SwiftEvolutionInterfaceBuilderTests|EvolutionCommandValidationTests|DiffCommandValidationTests|ObjCSectionCommandTests|ObjCAPICommandParsingTests|ObjCDumpDiagnosticsTests|MachOSourceTests|InterfaceAnnotationStyleTests|TransformerRequestTests|ABIRequestTests|DumpAndInterfaceRequestTests|ObjCRequestTests|CommandRequestMappingTests|CommandLineErrorTranslationTests|StandardStreamOutputTests|CommandLineStreamWriteScanTests)(/|$)'

- name: Run the SharedCache suites on a one-thread cooperative pool (${{ matrix.configuration }})
# The runner has 3 cores, so the Swift Concurrency cooperative pool is
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Verify Version.swift matches tag
run: |
set -euo pipefail
file="Sources/swift-section/Version.swift"
file="Sources/Executables/swift-section/Version.swift"
value=$(grep -m1 -E 'static[[:space:]]+let[[:space:]]+value[[:space:]]*=[[:space:]]*"[^"]+"' "$file" | sed -E 's/.*"([^"]+)".*/\1/' || true)
if [ -z "$value" ]; then
echo "::error file=$file::Failed to extract BundledVersion.value"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/version-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
id: version
run: |
set -euo pipefail
file="Sources/swift-section/Version.swift"
file="Sources/Executables/swift-section/Version.swift"
value=$(grep -m1 -E 'static[[:space:]]+let[[:space:]]+value[[:space:]]*=[[:space:]]*"[^"]+"' "$file" | sed -E 's/.*"([^"]+)".*/\1/' || true)
if [ -z "$value" ]; then
echo "::error file=$file::Failed to extract BundledVersion.value"
Expand All @@ -39,7 +39,7 @@ jobs:
fi
changelog="Changelogs/$value.md"
if [ ! -f "$changelog" ]; then
echo "::error file=Sources/swift-section/Version.swift::Missing $changelog — every stable BundledVersion.value must have a matching changelog. Either create $changelog or adjust Version.swift."
echo "::error file=Sources/Executables/swift-section/Version.swift::Missing $changelog — every stable BundledVersion.value must have a matching changelog. Either create $changelog or adjust Version.swift."
exit 1
fi
echo "Found $changelog"
Expand Down
52 changes: 32 additions & 20 deletions AGENTS.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion AgentPlugins/swift-section/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swift-section",
"version": "0.21.0",
"version": "0.22.0",
"description": "Teaches coding agents to drive the swift-section CLI: Swift and Objective-C declarations, memory layout and ABI diffs recovered from a Mach-O binary or a dyld shared cache.",
"author": {
"name": "MxIris-Reverse-Engineering",
Expand Down
2 changes: 1 addition & 1 deletion AgentPlugins/swift-section/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swift-section",
"version": "0.21.0",
"version": "0.22.0",
"description": "Teaches coding agents to drive the swift-section CLI: Swift and Objective-C declarations, memory layout and ABI diffs recovered from a Mach-O binary or a dyld shared cache.",
"author": {
"name": "MxIris-Reverse-Engineering",
Expand Down
12 changes: 8 additions & 4 deletions AgentPlugins/swift-section/skills/swift-section-cli/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ swift-section interface --help | grep -- --exported-only # empty ⇒ this bui

Flags added comparatively late, and therefore worth checking: `--emit-header`,
`--emit-export-status`, `--exported-only`, `--jobs`, `evolution --interface`,
`--supplementary-apinotes`, and from 0.20.0 `--dependency-search-path`,
`--infer-objc-overrides` and the whole `objc` subcommand group. When one is missing, say so
`--supplementary-apinotes`, from 0.20.0 `--dependency-search-path`,
`--infer-objc-overrides` and the whole `objc` subcommand group, and from 0.22.0
`evolution --emit-available` / `--platform`. When one is missing, say so
rather than silently producing a weaker answer — the alternative is usually "upgrade
(`brew upgrade swift-section`), or do without that annotation".

Expand Down Expand Up @@ -103,8 +104,10 @@ swift-section dump --dyld-shared-cache --cache-image-path /System/Library/.../Sw
macOS host needs `--dependency-search-path` (`dump`, `interface`, `snapshot`; repeatable)
naming its runtime: a Mach-O file, a cache file (`dyld_shared_cache_*` /
`dyld_sim_shared_cache_*`), or a directory used as a system root such as a simulator
runtime's `RuntimeRoot`. Named paths are consulted before the running system's cache. When
those facts are missing from an iOS binary's output, suspect this flag before the binary.
runtime's `RuntimeRoot`. Named paths are consulted before the running system's cache. An
image read out of a cache (`--dyld-shared-cache`) needs none: it resolves in that same cache
first, so an archived macOS 15 cache is laid out against its own Foundation, not the host's.
When those facts are missing from an iOS binary's output, suspect this flag before the binary.

## 3. Never redirect `interface`'s stdout — pass `-o`

Expand Down Expand Up @@ -228,6 +231,7 @@ swift-section evolution 17.0.json 18.0.json /path/Foo --labels 17.0,18.0,26.0
snapshot JSON is rejected there, though it is fine for the change-list / lineage reports.
- `evolution` needs ≥ 2 inputs **in version order, oldest first**; `--labels` is comma-separated
and must have exactly one label per input.
- `evolution --interface --emit-available` adds a genuine `@available(<platform>, introduced: …, obsoleted: …)` line above each declaration whose whole lifecycle one attribute can express. **No attribute is not "no lifecycle"**: a declaration that disappeared and came back, one that was only `modified`, or any involved label that is not a numeric version (the file-name fallback!) gets none — pass numeric `--labels` and read the `// [●○●]` comment, which is always there. The versions are axis points, not exact release versions. The platform is inferred from every input's `LC_BUILD_VERSION` (a simulator counts as its device); an input whose platform `@available` has no name for (DriverKit), or inputs of different platforms, fail with exit code 64 — name it with `--platform` (only valid with `--emit-available`, which is only valid with `--interface`).
- `--fail-on-breaking` makes a breaking change a nonzero exit — that, not the report text, is
the CI signal.
- Compare binaries in **similar strip states**. A symbol-rich build against a stripped one
Expand Down
78 changes: 28 additions & 50 deletions Changelogs/0.20.0.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,32 @@
# 0.20.0

A minor release on top of `0.19.0`. `dump` and `interface` now read the types Swift hides behind accessor functions without running any code, and recover the `@objc`, `override`, `@objc @implementation` and property-wrapper spellings that stripped OS frameworks no longer carry. objc-section's commands ship inside `swift-section` as `swift-section objc`. Several rendered names change on purpose; see Compatibility before upgrading ABI baselines.

## What's new

- **Types behind accessor functions are read offline.** A field or associated type whose metadata sits behind an accessor function (availability-conditional `some View`, noncopyable payloads) used to print as `accessor function at 0x…`. `dump` and `interface` now decode the accessor's ARM64 code and print the type, with its availability branches as a comment — in macOS, iOS-device and simulator dyld caches and in standalone files.
- **`--dependency-search-path`** (`dump`, `interface`, `snapshot`, repeatable) — where a standalone binary's dependencies live: a Mach-O file, a dyld shared cache file, or a directory used as a system root (a simulator runtime's `RuntimeRoot`). Without it, paths are inferred from where the binary sits and the running system's cache is used; an iOS binary read on a macOS host needs its runtime named here.
- **`swift-section objc`** — `dump`, `interface`, `snapshot`, `diff` and `evolution` for Objective-C, moved from `objc-section` with the same output: `objc-section <command> …` becomes `swift-section objc <command> …`. The standalone `objc-section` is being retired after this release.
- **`@objc` members are recovered from the ObjC method table**, even where an OS framework stripped the thunk symbols: `@objc`, `@objc(selector:)` where the selector is not the one the compiler would derive, and `override` of members an ObjC ancestor implements — that chain is followed into the binary's dependencies.
- **`@objc @implementation` classes** print as `@objc @implementation extension X` with their stored properties; `dump` gains an `objcImplementationClasses` section.
- **`--infer-objc-overrides`** (`interface`, off by default) — also marks as `override` a method tied to a member by its selector's name alone. `dump` always shows these ties, marked `(selector name, no symbol evidence)`.
- **Property wrappers**: `interface` prints `@Wrapper var x` and hides the compiler-synthesized `_x` / `$x`, for wrappers from other images and for stripped declarations too.
- **Swift 6.4 binaries**: `Builtin.Borrow` metadata is read and laid out statically; a `@_rawLayout` type's artificial storage field is laid out, and hidden from `interface`, which prints `@_rawLayout(size:alignment:)` where only a builtin descriptor survives. An actor's `$defaultActor` storage is no longer printed in `interface`.
- **Private types in dyld caches keep their private discriminator**: `dump` prints `(Name in _…)` as it already did for binaries that keep their symbols, and two same-named private types no longer merge into one in `interface`.
- **Library**: models for key path components and property descriptors, async and coroutine function pointers, accessible functions (`__swift5_acfuncs`), capture descriptors (`__swift5_capture`), generic metadata patterns and function type metadata's trailing objects; type and protocol definitions know whether the image exports them; `NestedFieldOffset.byteWidth`, a nested field's proven value size; new library product `SwiftThunkAnalysis`.

## Fixes

- `dump` and `interface` crashed about one run in five on a dylib whose module declares no class (no `__DATA` segment) — including the dylib Homebrew's formula test builds. Present in `0.19.0`; fixed by MachOKit `0.52.103`.
- `interface` printed nothing for several node kinds in type positions — in SwiftUI, 201 `Predicate<>`, 8 bare `-> ` and 122 `init<>()`.
- A type declared in another module's extension lost the extended type: `Invalidations.Tuple` for `NSView.Invalidations.Tuple`.
- Specialized generic names that come from the runtime printed `(unknown context at $…)`, or dropped a private type argument's module and enclosing types.
- Opaque result types: an unresolvable reference printed the conforming type itself and now prints the legal `@_opaqueReturnTypeOf(…)` spelling; `some Base & P` kept only `P`; generic arguments inside a constraint were dropped (`some Sequence<Set<Int>>` lost its `<Int>`).
- `interface --parse-opaque-return-type` (and RuntimeViewer's export) crashed with `Index out of range` on an opaque parameter that carries no runtime-visible constraint, seen on PhotosUIFoundation.
- A conformance to a `private` protocol had no type highlighting and no link in semantic output such as RuntimeViewer's.
- A method whose implementation pointer is null no longer drops its whole type from the index.
- A malformed symbol whose value is not an offset no longer crashes the process while an image is indexed.

## Breaking

Source level — this package is distributed as source, so every downstream recompiles:

- `MetadataReader` → `SymbolicDemangler` (SPI `Internals`). The old name remains as a deprecated alias for one release.
- `PrimitiveTypeMapping` and `PrimitiveTypeMappingCache` are removed; C-imported type names now come from each descriptor's own import info.
- `FieldLayoutRenderable` no longer refines `MachOSwiftSectionRepresentableWithCache`. Where a generic constraint needs both, write `MachOFieldLayoutRenderable`.
- `HeapLocalVariableMetadata.captureDescription` points at a `CaptureDescriptor` (was `String?`).
- `numUnderlyingTypeArugments` → `numUnderlyingTypeArguments`. The misspelling remains as a deprecated forward for one release.

## Compatibility

- **Rendered names change** in four deliberate places: types behind accessor functions (now read), private types in dyld caches (`dump` now shows their discriminators), C-imported type names (now follow each descriptor's import info, as the runtime does), and types declared in another module's extension. Anything keyed on these names changes with them — an ABI snapshot saved by `0.19.0` reports the affected types as removed and re-added, so regenerate baselines with `0.20.0`. Snapshot `formatVersion` is unchanged (5).
- **New dependency**: swift-capstone `6.0.0 ..< 7.0.0`, with only its `AARCH64` trait enabled; it is C source and builds for any host architecture.
- **Dependency floors**: MachOKit `0.52.103 ..< 0.53.0` (was `0.52.101`), swift-demangling `0.7.1 ..< 0.8.0` (was `0.6.3 ..< 0.7.0`), MachOObjCSection `0.8.106 ..< 0.9.0` (was `0.8.105`). All other pins are unchanged from `0.19.0`.
- The recoveries above are on by default; only the name-only override inference waits for `--infer-objc-overrides`.

## Requirements

- Swift 6.2+
- Xcode 26.0+

---

Full design: evolution proposals [0021–0050](https://github.com/MxIris-Reverse-Engineering/MachOSwiftSection/blob/0.20.0/Documentations/Evolutions/README.md); the `objc` guide [ObjCCommandLine.md](https://github.com/MxIris-Reverse-Engineering/MachOSwiftSection/blob/0.20.0/Documentations/ObjCCommandLine.md); implementation notes [AccessorThunkResolutionExplained.md](https://github.com/MxIris-Reverse-Engineering/MachOSwiftSection/blob/0.20.0/Documentations/Internal/AccessorThunkResolutionExplained.md), [ObjCMemberRecovery.md](https://github.com/MxIris-Reverse-Engineering/MachOSwiftSection/blob/0.20.0/Documentations/Internal/ObjCMemberRecovery.md) and [SymbolicManglingSymbols.md](https://github.com/MxIris-Reverse-Engineering/MachOSwiftSection/blob/0.20.0/Documentations/Internal/SymbolicManglingSymbols.md).
- Some printed type names change, so ABI snapshots saved with 0.19.0 report those types as removed and re-added; regenerate your baselines.
- `MetadataReader` is renamed `SymbolicDemangler`, and `numUnderlyingTypeArugments` is renamed `numUnderlyingTypeArguments`; the old names stay deprecated for one release.
- Removed `PrimitiveTypeMapping` and `PrimitiveTypeMappingCache`.
- `FieldLayoutRenderable` no longer refines `MachOSwiftSectionRepresentableWithCache`; use `MachOFieldLayoutRenderable` where you need both.
- `HeapLocalVariableMetadata.captureDescription` is now a `CaptureDescriptor` instead of `String?`.
- Requires MachOKit 0.52.103, swift-demangling 0.7.1 and MachOObjCSection 0.8.106 or later, and adds a dependency on swift-capstone 6.

## New

- `swift-section objc` replaces `objc-section` with the same commands and output; the standalone `objc-section` is retired after this release.
- `dump` and `interface` now print types hidden behind accessor functions instead of `accessor function at 0x…`.
- `interface` recovers `@objc`, `@objc(selector:)`, `override` and `@objc @implementation` classes, even in stripped OS frameworks.
- `interface` prints property wrappers as `@Wrapper var x` and hides the synthesized `_x` and `$x`.
- New `--dependency-search-path` option tells `dump`, `interface` and `snapshot` where a binary's dependencies live.
- New `--infer-objc-overrides` option for `interface` also marks a method as `override` when only its selector name matches.
- Supports Swift 6.4 binaries, including `Builtin.Borrow` and `@_rawLayout` types.
- Private types in dyld caches keep their discriminator, so same-named private types no longer merge.
- New `SwiftThunkAnalysis` library product, and models for key paths, property descriptors, capture descriptors and accessible functions.

## Fixed

- Fixed `dump` and `interface` crashing intermittently on dylibs that declare no classes.
- Fixed `interface --parse-opaque-return-type` crashing with `Index out of range`.
- Fixed `interface` printing incomplete types such as `Predicate<>` and `init<>()`.
- Fixed wrong names for types in other modules' extensions, specialized generics and opaque result types.
- Fixed conformances to `private` protocols missing highlighting and links in semantic output.
- Fixed a type missing from the index when one of its methods has no implementation.
- Fixed a crash when indexing an image with a malformed symbol.
Loading
Loading