Skip to content

Releases

0.8.204

Choose a tag to compare

@github-actions github-actions released this 29 Oct 02:54

0.8.204

What's new

  • ObjCEvolutionInterfaceBuilder merges the ObjC headers of several versions of one binary into one, marking each declaration that was added, removed or modified.

Fixes

  • Fixed a compiler crash when building with Xcode 26, which made 0.8.203 unusable there.

0.8.202

Choose a tag to compare

@github-actions github-actions released this 28 Oct 13:48

0.8.202

Fixes

  • Fixed garbled class and category method names when reading macOS 11 dyld shared caches.

0.8.201

Choose a tag to compare

@github-actions github-actions released this 27 Oct 13:36

0.8.201

What's new

  • ObjCInterfaceIndexer takes suppliedClasses, Swift classes without a class object such as generic ones, and indexes, renders and snapshots them.

Fixes

  • diff now reports a protocol that newly adopts a protocol with required members as breaking.
  • Methods with unlabeled arguments, such as add::, now render every argument.
  • Array fields of structs and arrays of arrays now render all their dimensions.
  • stripSynthesizedMethods no longer removes a set…: method declared beside a read-only property.
  • Fixed empty method names in arm64_32 (watchOS) files.
  • Fixed a crash when resolving IMP addresses of arm64e methods in loaded images.
  • Classes and categories that implement +load are no longer indexed twice.
  • objc.methods now reads every method list in __objc_methlist.
  • ivarLayout(in:) now keeps bytes of 0x80 and above.
  • Transformer.CType no longer rewrites part of a longer type, such as unsigned long.

Compatibility

  • Requires MachOKit 0.55.100 and swift-objc-dump 0.8.102 or later.
  • Removed ObjCRenderingContext.currentArray and its init parameter; drop any use of them.

0.8.200

Choose a tag to compare

@github-actions github-actions released this 15 Oct 03:22

0.8.200

Fixes

  • Fixed missing methods, properties or protocols of Objective-C classes that one image attaches several lists to, such as _UTCoreType.

0.8.111

Choose a tag to compare

@github-actions github-actions released this 13 Oct 09:45

0.8.111

Fixes

  • Fixed missing properties and protocols of some Objective-C classes read from macOS 26.4 and later dyld shared cache files.

0.8.110

Choose a tag to compare

@github-actions github-actions released this 08 Oct 00:29

0.8.110

Fixes

  • Fixed missing Objective-C classes, metaclasses, superclasses and ivar offsets in files linked with -interposable, such as the frameworks of iOS simulator runtimes.
  • Superclasses defined in another image are now named in files without chained fixups, such as the frameworks of the iOS 15 simulator runtime.

Compatibility

  • Requires MachOKit 0.54.101 and MachOKitExtensions 1.2.0 or later.

0.8.109

Choose a tag to compare

@github-actions github-actions released this 06 Oct 11:39

0.8.109

A fix for reading a dyld shared cache opened from its main file alone, the way objc-section --dyld-shared-cache opens it: a read that crosses into another sub-cache no longer opens and maps that sub-cache's file again, so indexing an image of a split cache stops piling up mappings of the same file.

Fixes

  • Every read that crossed into another sub-cache assembled that sub-cache afresh, opening and mapping its file once more, and the mappings outlived the caches that made them. Indexing SwiftUI out of a macOS 14.4 cache held 250 mappings of one sub-cache file; over many images their page tables alone ran to hundreds of megabytes. Each sub-cache is now assembled once per image, and a cache's mapping goes away with the cache. Present since 0.1.0; the mappings have outlived their caches since 0.7.0.

Compatibility

  • Requires MachOKitExtensions 1.1.1 or later (was 1.0.0), the first release that assembles each sub-cache once. The other dependency requirements are unchanged.
  • dump and interface output is unchanged.

Requirements

  • Swift 6.2+ and Xcode 26.0+ to build from source.

0.8.108

Choose a tag to compare

@github-actions github-actions released this 03 Oct 14:56

0.8.108

Mainly a fix for reading macOS 11 through 15 dyld shared caches: protocol methods read from them now carry their real names and types, and images of the macOS 14.4–15.3.2 caches no longer crash. It also adds a marked rendering for hosts that change generation switches live, and makes stripProtocolConformance drop everything it promised to.

What's new

  • Marked rendering: ObjCInterfaceBuilder.markedClassInterface(named:…), markedProtocolInterface(named:…) and markedCategoryInterface(uniqueName:…) render every member and comment once, wrapping each piece a generation switch controls in a VisibilityRegion. Projected with ObjCGenerationOptions.isVisibilityOptionEnabled(_:), it equals what classInterface(named:options:) and its siblings render for those options, so a host can flip switches without rendering again.

Fixes

  • Indexing an image of a macOS 14.4–15.3.2 dyld shared cache trapped with no output: objc-section and swift-section objc exited 133 on AppKit, Foundation and every other image tried. Present since 0.5.0.
  • Protocol methods read from macOS 11–14.3 caches had no names or types (NSCoding printed - (Unknown);). From 15.4 on, the same held for the few protocols still stored that way, such as CoreFoundation's NSCopying, so stripProtocolConformance kept their members. Present since 0.5.0.
  • stripProtocolConformance dropped only the required members of the directly adopted protocols. It now drops required and optional members along the whole protocol chain — NSObject's hash and description, optional delegate methods — and keeps the <Protocol, …> list, which the option's documentation and --help wrongly said it removed.

Compatibility

  • Requires swift-semantic-string 0.4.0 or later (was 0.3.0), the first release with VisibilityRegion. The other dependency requirements are unchanged.
  • dump and interface output changes only where a fix above applies: protocol methods read from macOS 11–15 caches, and declarations rendered with stripProtocolConformance. The plain entry points render as before.

Requirements

  • Swift 6.2+ and Xcode 26.0+ to build from source.

Details, in Chinese: dyld cache pointer slots · marked rendering · stripProtocolConformance

0.8.107

Choose a tag to compare

@github-actions github-actions released this 29 Sep 15:32

0.8.107

Keeps Mach-O file parsing fast without MachOKit's fork-only performance patches. Bind and rebase lookups in a MachOFile, and image lookups in the loaded dyld shared cache, now go through MachOKitExtensions' cached views instead of caches the fork used to patch into MachOKit itself.

Changes

  • The core MachOObjCSection target depends on MachOKitExtensions. It is imported internally, so clients do not see it through this module.
  • Chained-fixup binds and rebases of a MachOFile resolve through machO.cached, a fixup map built once per file. MachOKit's own resolveBind(at:) and resolveOptionalRebase(at:) walk the fixup chains on every call once the fork drops its cache.
  • Images in the loaded dyld shared cache are found through DyldCacheLoaded.cachedCurrent and cache.cached.headerInfo(at:in:), which replace DyldCacheLoaded.current and the fork-only ObjCHeaderOptimizationRO.headerInfo(at:in:).

Compatibility

  • Requires MachOKitExtensions 1.0.0 or later. A package that also depends on MachOKitExtensions directly with from: "0.1.x" must raise that requirement to 1.0.0.
  • Builds against MachOKit 0.52 and 0.53. MachOKit releases after 0.53.100 no longer have headerInfo(at:in:), which 0.8.106 and earlier call, so those need this release.
  • dump and interface output is unchanged.

Requirements

  • Swift 6.2+ and Xcode 26.0+ to build from source.

0.8.106

Choose a tag to compare

@github-actions github-actions released this 23 Sep 09:11

0.8.106

The first release that ships objc-section prebuilt: a universal (x86_64 + arm64) macOS binary is attached, so the tool no longer has to be built from source. On top of 0.8.105 it adds ObjC API diffing (freeze a binary's API as a baseline, diff two versions, or follow every declaration across many) and a library API that tells whether a class or an ivar is exported.

What's new

  • Prebuilt objc-section: download objc-section-macos-universal.zip from this release and unzip it. The binary is ad-hoc signed, not notarized; if macOS blocks a copy downloaded through a browser, run xattr -d com.apple.quarantine objc-section.
  • objc-section snapshot indexes a Mach-O file, a fat binary or an image in a dyld shared cache, and writes its ObjC API as a JSON baseline: objc-section snapshot <file> --label 26.0 -o baseline.json. Later comparisons read the JSON and need neither the original binary nor another indexing pass.
  • objc-section diff <old> <new> reports classes, protocols and categories, with their methods, properties, ivars, protocol adoptions and superclass, as added / removed / modified, and gives a breaking or backward-compatible verdict. Either side can be a binary or a baseline. --json emits structured output, --summary-only prints the verdict alone, --fail-on-breaking exits nonzero for CI gating, and -o writes the report to a file.
  • objc-section evolution <v1> <v2> … makes the same comparison across two or more versions in order and prints each declaration's lifeline. --labels 17.0,18.0,26.0 names the versions, and the four options above apply here too.
  • ObjCDiffing library product: the engine behind those three commands (ObjCAPIDiffer, ObjCAPIEvolutionBuilder, ObjCAPISnapshotDocument). ObjCAPISnapshotBuilder in ObjCInterface feeds it from a prepared ObjCInterfaceIndexer.
  • Export status of classes and ivars: ObjCExportIndex(machO:) in ObjCMetadataSource answers exportStatus(ofClassNamed:) and exportStatus(ofIvarNamed:inClassNamed:) with .exported, .notExported or .imageHasNoExportInformation. The last one covers object files and static libraries, which have no export trie; never treat it as "not exported". Protocols and categories have no exported symbol, so there is no query for them. objc-section output does not change.

Fixes

  • dump --sections misread both natural spellings: --sections classes protocols <file> took the file path as a third section, and --sections classes,protocols was rejected. It now takes one comma-separated value, before or after the file path, and the space-separated form fails with a message pointing to the comma form. Present since 0.8.105, the first release with objc-section.
  • dump printed nothing and exited 0 in three different situations: the binary has no ObjC metadata, a kind named in --sections is empty, or --filter matched nothing. Each now writes one line to stderr naming the case, such as no Objective-C metadata found in /bin/ls. stdout and the exit code, still 0, are unchanged.

Compatibility

  • Scripts that pass space-separated values to --sections must switch to commas: --sections classes,protocols.
  • ObjCCategoryInfo.uniqueName and ObjCPropertyInfo.ivar / customGetter / customSetter moved from ObjCDeclarationRendering to ObjCMetadataSource. Existing code keeps compiling, but a target that enables MemberImportVisibility (SE-0444) needs import ObjCMetadataSource, and a dependency on that product, wherever it uses them.
  • Baselines carry formatVersion 1. A baseline written with another format version is rejected with an error, not compared.
  • Dependency requirements are unchanged. dump and interface output is unchanged apart from the stderr notes above.

Requirements

  • Swift 6.2+ and Xcode 26.0+ to build from source.

Design and limitations, in Chinese: ObjC API diff · export status · command-line guide