github getsentry/sentry-cocoa 8.57.2

7 hours ago

Warning

Session Replay is disabled by default on iOS 26.0+ with Xcode 26.0+ to prevent PII leaks

Due to potential masking issues introduced by Apple's Liquid Glass rendering changes in iOS 26.0, Session Replay is now automatically disabled on apps running iOS 26.0+ when built with Xcode 26.0 or later. This is a defensive measure to protect user privacy and prevent potential PII leaks until masking is reliably supported.

Session replay will work normally if:

  • Your app runs on iOS versions older than 26.0, OR
  • Your app is built with Xcode versions older than 26.0, OR
  • Your app explicitly sets UIDesignRequiresCompatibility to YES in Info.plist

Override (use with caution): If you understand the PII risks and want to enable session replay anyway, you can set:

options.experimental.enableSessionReplayInUnreliableEnvironment = true

This experimental override option will be removed in a future minor version once the masking issues are resolved.

Fixes

  • Fix rendering method for fast view rendering (#6360)
  • Session Replay masking improvements (#6292)
    • Fix SwiftUI.List background decoration view causing incorrect clipping of screen content
    • Fix sublayer rendering order by properly sorting by zPosition with insertion order as tie-breaker
    • Fix UISwitch internal images being incorrectly redacted
    • Fix UITextField placeholder text (UITextFieldLabel) not being detected for redaction
    • Use string-based class comparison to avoid triggering Objective-C +initialize on background threads
    • Add layer class filtering for views used in multiple contexts (e.g., SwiftUI._UIGraphicsView)
    • Improve transform calculations for views with custom anchor points
    • Fix axis-aligned transform detection for optimized opaque view clipping
  • Fix conversion of frame rate to time interval for session replay (#6623)
  • Change Session Replay masking to prevent semi‑transparent full‑screen overlays from clearing redactions by making opaque clipping stricter (#6629)
    Views now need to be fully opaque (view and layer backgrounds with alpha == 1) and report opaque to qualify for clip‑out.
    This avoids leaks at the cost of fewer clip‑out optimizations.

Don't miss a new sentry-cocoa release

NewReleases is sending notifications on new releases.