Skip to content

v2.1.0-RC.2

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 05 Aug 15:02
· 63 commits to main since this release

v2.1.0-RC.2

Second release candidate on the 2.1 line. A single, high-impact correctness
fix over v2.1.0-RC.1: images caught in a dyld dependency
cycle — UIKitCore and Foundation among them — listed no Objective-C protocols
at all.

This is a beta build — only clients that opted in via
Settings → Updates → Include pre-release versions receive it.


Bug Fixes

Objective-C protocols reappear for UIKitCore, Foundation, and friends

Opening UIKitCore showed an empty protocol list. Foundation showed no
NSCoding, NSCopying, or NSFastEnumeration. Classes, categories, and C
structs were listed normally, so the image itself parsed fine — only protocols
went missing, and they went missing entirely rather than partially.

The cause was a protocol-ownership heuristic. Because the compiler emits a full
protocol_t into every image that saw a @protocol declaration at compile
time, __objc_protolist carries plenty of protocols an image merely imported.
The heuristic dropped a protocol whenever some other carrier of it sat in the
image's transitive dependency closure — which relied on an image never
appearing in its own closure. dyld's upward dependencies (LC_LOAD_UPWARD_DYLIB)
exist precisely to express cycles, so UIKitCore ↔ PrintKitUI/ShareSheet and
Foundation ↔ CoreFoundation each put an image inside its own closure. Every
protocol it carried was then classified as imported, and the listing came back
empty.

Nothing in the Mach-O format records a defining image for a protocol, so
attribution can only ever be a heuristic — and this one failed silently, with
no error to hint that anything had been dropped. The filter is gone;
__objc_protolist is now listed verbatim. Some imported protocols reappear as
noise you can see and judge for yourself, which is the better failure mode: a
protocol that is silently absent is not.

Images outside a dependency cycle — AppKit, SwiftUI, CoreData, QuartzCore,
WebKit, Photos — were never affected and are unchanged.