sentry-cocoa
sentry-cocoa copied to clipboard
Crash in `SentryConnectivityCallback`
Platform
macOS
Environment
Production
Installed
Swift Package Manager
Version
8.50.1
Xcode Version
16.4
Did it work on previous versions?
No response
Steps to Reproduce
Happened to an unknown user, not me.
Crash report: https://sindresorhus.sentry.io/share/issue/ef101484202b4a57ab3977994b19e973/
Expected Result
Expected Sentry SDK to never cause a crash.
Actual Result
Crashed
Are you willing to submit a PR?
No response
Thanks for reporting this @sindresorhus. I see a few occurences of this in our internal SDK crash detection. I'm unsure what causes this.
It makes sense to switch to using NWPathMonitor instead of checking the SCNetworkReachabilityFlags as also pointed out here https://github.com/getsentry/sentry-cocoa/issues/4488, before fixing this issue.