github getsentry/sentry-cocoa 9.7.0

7 hours ago

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)

Don't miss a new sentry-cocoa release

NewReleases is sending notifications on new releases.