Repository navigation
Releases
0.8.204
0.8.204
What's new
ObjCEvolutionInterfaceBuildermerges 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
0.8.202
Fixes
- Fixed garbled class and category method names when reading macOS 11 dyld shared caches.
0.8.201
0.8.201
What's new
ObjCInterfaceIndexertakessuppliedClasses, Swift classes without a class object such as generic ones, and indexes, renders and snapshots them.
Fixes
diffnow 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.
stripSynthesizedMethodsno longer removes aset…: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
+loadare no longer indexed twice. objc.methodsnow reads every method list in__objc_methlist.ivarLayout(in:)now keeps bytes of 0x80 and above.Transformer.CTypeno longer rewrites part of a longer type, such asunsigned long.
Compatibility
- Requires MachOKit 0.55.100 and swift-objc-dump 0.8.102 or later.
- Removed
ObjCRenderingContext.currentArrayand itsinitparameter; drop any use of them.
0.8.200
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
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
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
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 since0.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.
dumpandinterfaceoutput is unchanged.
Requirements
- Swift 6.2+ and Xcode 26.0+ to build from source.
0.8.108
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:…)andmarkedCategoryInterface(uniqueName:…)render every member and comment once, wrapping each piece a generation switch controls in aVisibilityRegion. Projected withObjCGenerationOptions.isVisibilityOptionEnabled(_:), it equals whatclassInterface(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-sectionandswift-section objcexited 133 on AppKit, Foundation and every other image tried. Present since0.5.0. - Protocol methods read from macOS 11–14.3 caches had no names or types (
NSCodingprinted- (Unknown);). From 15.4 on, the same held for the few protocols still stored that way, such as CoreFoundation'sNSCopying, sostripProtocolConformancekept their members. Present since0.5.0. stripProtocolConformancedropped only the required members of the directly adopted protocols. It now drops required and optional members along the whole protocol chain —NSObject'shashanddescription, optional delegate methods — and keeps the<Protocol, …>list, which the option's documentation and--helpwrongly 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. dumpandinterfaceoutput changes only where a fix above applies: protocol methods read from macOS 11–15 caches, and declarations rendered withstripProtocolConformance. 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
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
MachOObjCSectiontarget depends on MachOKitExtensions. It is imported internally, so clients do not see it through this module. - Chained-fixup binds and rebases of a
MachOFileresolve throughmachO.cached, a fixup map built once per file. MachOKit's ownresolveBind(at:)andresolveOptionalRebase(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.cachedCurrentandcache.cached.headerInfo(at:in:), which replaceDyldCacheLoaded.currentand the fork-onlyObjCHeaderOptimizationRO.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 to1.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. dumpandinterfaceoutput is unchanged.
Requirements
- Swift 6.2+ and Xcode 26.0+ to build from source.
0.8.106
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: downloadobjc-section-macos-universal.zipfrom this release and unzip it. The binary is ad-hoc signed, not notarized; if macOS blocks a copy downloaded through a browser, runxattr -d com.apple.quarantine objc-section. objc-section snapshotindexes 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.--jsonemits structured output,--summary-onlyprints the verdict alone,--fail-on-breakingexits nonzero for CI gating, and-owrites 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.0names the versions, and the four options above apply here too.ObjCDiffinglibrary product: the engine behind those three commands (ObjCAPIDiffer,ObjCAPIEvolutionBuilder,ObjCAPISnapshotDocument).ObjCAPISnapshotBuilderinObjCInterfacefeeds it from a preparedObjCInterfaceIndexer.- Export status of classes and ivars:
ObjCExportIndex(machO:)inObjCMetadataSourceanswersexportStatus(ofClassNamed:)andexportStatus(ofIvarNamed:inClassNamed:)with.exported,.notExportedor.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-sectionoutput does not change.
Fixes
dump --sectionsmisread both natural spellings:--sections classes protocols <file>took the file path as a third section, and--sections classes,protocolswas 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 since0.8.105, the first release withobjc-section.dumpprinted nothing and exited 0 in three different situations: the binary has no ObjC metadata, a kind named in--sectionsis empty, or--filtermatched nothing. Each now writes one line to stderr naming the case, such asno Objective-C metadata found in /bin/ls. stdout and the exit code, still 0, are unchanged.
Compatibility
- Scripts that pass space-separated values to
--sectionsmust switch to commas:--sections classes,protocols. ObjCCategoryInfo.uniqueNameandObjCPropertyInfo.ivar/customGetter/customSettermoved fromObjCDeclarationRenderingtoObjCMetadataSource. Existing code keeps compiling, but a target that enablesMemberImportVisibility(SE-0444) needsimport ObjCMetadataSource, and a dependency on that product, wherever it uses them.- Baselines carry
formatVersion1. A baseline written with another format version is rejected with an error, not compared. - Dependency requirements are unchanged.
dumpandinterfaceoutput 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