Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bd48a12c4f646022b1e8f2efa91672c414da2152
      
https://github.com/WebKit/WebKit/commit/bd48a12c4f646022b1e8f2efa91672c414da2152
  Author: Elliott Williams <[email protected]>
  Date:   2026-07-20 (Mon, 20 Jul 2026)

  Changed paths:
    M Source/WebKit/Configurations/WebKit.xcconfig

  Log Message:
  -----------
  [Swift] Compatibility library not loadable for some non-Safari clients
https://bugs.webkit.org/show_bug.cgi?id=319854
rdar://182539064

Reviewed by Mike Wyrzykowski.

In downlevel updates, a WebKit client in the OS is loading from the
StagedFrameworks/ directory without setting a DYLD_LIBRARY_PATH, so it
fails to find the libswiftCompatibilitySpan.dylib binary needed to use
Span types.

The compatibility library's install name is @rpath-based, so it can be
loaded relative to the dylib containing the load command. Add an
appropriate path to WebKit's rpath stack At launch time, dyld uses the
StagedFrameworks/ directory to resolving dylib dependencies for WebKit.

This works for the WebKit --> WebGPU --> libSwiftCompatibilitySpan load
path. If a client were to link against WebGPU directly (without WebKit)
dyld would not use this rpath. This is fine since WebGPU is a private
framework and an implementation detail of WebKit, and future-proofed
since WebKit itself will soon start using Span.

* Source/WebKit/Configurations/WebKit.xcconfig:

Canonical link: https://commits.webkit.org/317586@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to