Skip to content

Releases: getsentry/sentry-cocoa

9.11.0

22 Apr 21:43

Choose a tag to compare

Features

  • Track low power mode in device context (#7777)

Fixes

  • Added Package@swift-6.2.swift to avoid issues with unsafe build flags on SPM > 6.2 (#7778)
  • Detect development builds via provisioning profile and debugger attachment (#7702)
  • Keep replayType as buffer for Session Replay triggered by an error (#7804)
  • Fix race condition in scope observer notifications causing EXC_BAD_ACCESS during cold launch (#7807)
  • Unsubscribe to system event during background to avoid reporting breadcrumbs with wrong timestamps on return to foreground (#7702)
  • Fix SwiftUI's images and text redaction in iOS 26 (#7781)
  • Add foreground state to app context in app hang events (#7801)

8.58.2

22 Apr 21:24

Choose a tag to compare

Fixes

  • Fix Package@swift-6.1.swift SPM manifest compilation on Swift 6.1 / Xcode 26 (#7800, #7819)

9.10.0

09 Apr 03:57

Choose a tag to compare

Features

  • Prevent cross-organization trace continuation (#7705)
    • By default, the SDK now extracts the organization ID from the DSN (e.g. o123.ingest.sentry.io) and compares it with the sentry-org_id value in incoming baggage headers. When the two differ, the SDK starts a fresh trace instead of continuing the foreign one. This guards against accidentally linking traces across organizations.
    • New option strictTraceContinuation (default false): when enabled, both the SDK's org ID and the incoming baggage org ID must be present and match for a trace to be continued. Traces with a missing org ID on either side are rejected.
    • New option orgId: allows explicitly setting the organization ID for self-hosted and Relay setups where it cannot be extracted from the DSN.

Fixes

  • Scope clipOut masking to active clip bounds (#7780)
  • Fix AOT interop with managed .NET runtimes (#6193)

8.58.1

09 Apr 18:55

Choose a tag to compare

Fixes

  • Add Package@swift-6.1.swift for Xcode 26 SPM compatibility (#7784)

9.9.0

03 Apr 15:03

Choose a tag to compare

Features

  • Add attachAllThreads option to SentryOptions to attach full stack traces for all threads to captured events (#7764)
  • Add per-call attachAllThreads parameter to capture(event:), capture(error:), capture(exception:), and capture(message:) to override the global option for specific calls (#7767)

Improvements

  • Align app lifecycle breadcrumb state values with in_foreground/is_active app context (#7703)
    • Breaking: Update any beforeBreadcrumb filters or dashboard queries matching on the old state values:
      • iOS/tvOS/visionOS
        • didBecomeActive state changed from foreground to active
      • macOS
        • didBecomeActive state changed from foreground to active
        • willResignActive state changed from background to inactive

Fixes

  • Copy incoming tags dict to prevent crash (#7763)
  • Per-instance unmaskView propagates to child views (#7733)
    • Warning: If you relied on children of an unmasked view still being individually redacted, verify your Session Replay redaction after updating. An explicit maskView(_:) on a descendant still takes precedence.
  • Move SessionTracker file I/O off the main thread (#7704)

9.8.0

19 Mar 13:31

Choose a tag to compare

Features

  • Add SentrySDK.lastRunStatus to distinguish unknown, no-crash and crash (#7469)

Fixes

  • Make SentryBreadcrumb thread-safe to prevent crashes in addBreadcrumb (#7665)

9.7.0

11 Mar 15:02

Choose a tag to compare

Features

  • Show feedback form on device shake (#7579)
    • Enable via config.useShakeGesture = true in SentryUserFeedbackConfiguration
    • Uses UIKit's built-in shake detection — no special permissions required
  • Add package traits for UI framework opt-out (#7578).
    When building from source with Swift 6.1+ (using Package@swift-6.1.swift), you can enable the NoUIFramework trait to avoid linking UIKit or AppKit. Use this for command-line tools, headless server contexts, or other environments where UI frameworks are unavailable.
    In Xcode 26.4 and later, add the Sentry package as a dependency and the SentrySPM product, then enable the NoUIFramework trait on the package reference (Package Dependencies → select Sentry → Traits).
  • Metric kit app hangs now report a full flamegraph rather than just one stacktrace during the hang. (#7185)

Fixes

  • Capture transactions that finish during the launch profiling window instead of silently discarding them (#7602)
  • Capture instance and class method [NSApplication _crashOnException] exceptions (#7510)

9.6.0

04 Mar 14:17

Choose a tag to compare

Features

  • Add watchdog termination hang tracker using RunLoop observer. Can be enabled by setting options.experimental.enableWatchdogTerminationsV2 = true (#7464)

Fixes

  • Preserve NSException and C++ exception reason instead of overwriting with unrelated crash_info_message from libswiftCore.dylib (#7515)
  • Fix unexpected null value when unwrapping view controller window (#7508)

9.5.1

25 Feb 14:37

Choose a tag to compare

Fixes

  • Don't report NSException subclasses as C++ exceptions (#7420)
  • Write reports on concurrent crashes (#7340)
  • Resolve data race crash in monitorCachedData (#7423)
  • Don't finish network spans for suspended URL session tasks (#7471)
  • Use different fallback for when MetricKit does not have file path (#7473)

9.5.0 (Stable)

19 Feb 08:43

Choose a tag to compare

Features

  • Enable MetricKit Integration for visionOS (#7466)

Fixes

  • SentryRedactViewHelper had been erroneously made public, it has been removed from the public interface (#7474)
  • Write reports on concurrent crashes (#7340)