chore(deps): update Cocoa SDK to v9.6.0#456
Conversation
8320538 to
d06fe80
Compare
3bbbea5 to
d4be44f
Compare
| @@ -1,2 +1,2 @@ | |||
| version=8.57.3 | |||
| version=9.1.0 | |||
| repo=https://github.com/getsentry/sentry-cocoa | |||
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
01d6fb9 to
5e19f71
Compare
5e19f71 to
665d9b3
Compare
| @@ -1,2 +1,2 @@ | |||
| version=8.57.3 | |||
| version=9.1.0 | |||
| repo=https://github.com/getsentry/sentry-cocoa | |||
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
665d9b3 to
d573ad2
Compare
d573ad2 to
cf2a786
Compare
cf2a786 to
68d1559
Compare
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
68d1559 to
d564877
Compare
d564877 to
39d30b4
Compare
39d30b4 to
e36855e
Compare
9b846fd to
6b877b9
Compare
fc2d042 to
b328ba4
Compare
29795b8 to
8adf4e9
Compare
b40c827 to
3052e83
Compare
| @@ -1,2 +1,2 @@ | |||
| version=8.57.3 | |||
| version=9.5.0 | |||
There was a problem hiding this comment.
Uncoordinated Cocoa major upgrade
High Severity
Updating modules/sentry-cocoa.properties to 9.5.0 pulls in Sentry Cocoa v9, which includes breaking platform minimum changes. The build still targets older iOS versions, so this version bump can break iOS builds or produce binaries that fail on older devices without any accompanying compatibility update.
01155d0 to
de4e176
Compare
de4e176 to
a02e736
Compare
| @@ -1,2 +1,2 @@ | |||
| version=8.57.3 | |||
| version=9.5.1 | |||
There was a problem hiding this comment.
Structured logs option path incompatible with SDK v9
High Severity
Bumping sentry-cocoa from v8.57.3 to v9.5.1 introduces a breaking API change: enableLogs was moved from options.experimental to the top-level options in v9.0.0 ("Structured Logs: Move options out of experimental"). The code in cocoa_sdk.mm still accesses options.experimental.enableLogs, which will either fail to compile or silently fail to enable structured logging.
47b44eb to
26a212e
Compare
| @@ -1,2 +1,2 @@ | |||
| version=8.57.3 | |||
| version=9.5.1 | |||
| repo=https://github.com/getsentry/sentry-cocoa | |||
There was a problem hiding this comment.
Bug: The code uses outdated Sentry Cocoa SDK v8 class names (SentryStructuredLogAttribute, SentryStructuredLogLevel) after an upgrade to v9, which will cause a compilation failure.
Severity: CRITICAL
Suggested Fix
Update the code in src/sentry/cocoa/cocoa_log.mm to use the new API names from the Sentry Cocoa SDK v9. Rename all instances of SentryStructuredLogAttribute to SentryLogAttribute and SentryStructuredLogLevel to SentryLogLevel.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: modules/sentry-cocoa.properties#L2
Potential issue: The Sentry Cocoa SDK was upgraded from version 8 to 9, but the code was
not updated to reflect breaking API changes. Specifically, the code in
`src/sentry/cocoa/cocoa_log.mm` continues to reference `SentryStructuredLogAttribute`
and `SentryStructuredLogLevel`, which were renamed to `SentryLogAttribute` and
`SentryLogLevel` in SDK version 9. This mismatch will cause the code to fail during
compilation, as the old class names no longer exist in the updated SDK headers.
db65af4 to
ae63ba9
Compare
79215e4 to
30b5244
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| @@ -1,2 +1,2 @@ | |||
| version=8.57.3 | |||
| version=9.6.0 | |||
There was a problem hiding this comment.
enableAppHangTracking removed from SentryOptions in v9
High Severity
Bumping the Cocoa SDK to v9.6.0 introduces a breaking change: enableAppHangTracking was removed from SentryOptions on iOS and tvOS (breaking change #5615). The code in cocoa_sdk.mm still sets options.enableAppHangTracking, which will cause a compilation error or runtime failure on iOS builds. macOS may still retain V1 tracking, but this property access is no longer valid for iOS/tvOS targets.
30b5244 to
ccc5918
Compare
ccc5918 to
b146d2e
Compare
|
Superseded by #442 |


Bumps modules/sentry-cocoa.properties from 8.57.3 to 9.6.0.
Auto-generated by a dependency updater.
Changelog
9.6.0
Features
options.experimental.enableWatchdogTerminationsV2 = true(#7464)Fixes
crash_info_messagefromlibswiftCore.dylib(#7515)9.5.1
Fixes
9.5.0
Features
Improvements
Fixes
9.4.1
Improvements
beforeSendLog(#7379)Fixes
Deprecations
SentrySwiftUImodule is now deprecated. All SwiftUI APIs (SentryTracedView,sentryTrace(),sentryReplayMask(),sentryReplayUnmask()) have been merged into the mainSentrymodule. You can replaceimport SentrySwiftUIwithimport Sentryin your code. TheSentrySwiftUImodule still works via a re-export but will be removed in the next major version. (#7422)9.4.0
Breaking Changes
Sentry.metrics.count(..)does not support units, therefore the API was incorrectly defined. This breaking change applies to a method marked as experimental. (#7358)Fixes
in_foregroundapp context (#7188) The app contextin_foregroundfor handled and unhandled events was sometimes different. This is fixed now by aligning the implementation and adding a newis_activeapp context field.NSExceptionobjects reported viaNSApplication.shared.reportException(_:)on macOS (#7284)9.3.0
Features
installGroupsOverrideparameter toCheckForUpdateParamsandinstallGroupsproperty toReleaseInfofor SentryDistribution (#7278)Fixes
9.2.0
Important
This release contains a bug fix to only include user attributes in logs when
options.sendDefaultPii = true.Make sure to enable the option in case you rely on these attributes to be set.
Features
options.sessionReplay.includedViewClassesandoptions.sessionReplay.excludedViewClassesto ignore views from subtree traversal (#7063)options.experimental.enableMetrics = false(#6956)options.experimental.beforeSendMetrics(#6960)Sentry.metrics.count(..),Sentry.metrics.distribution(..)andSentry.metrics.gauge(..)to public API (#6957)SentrySDK.flush()(#7182)Fixes
send_error(#6618) This also fixes edge cases in which the SDK kept retrying sending a faulty envelope until the offline cache overflowed.options.sendDefaultPii = true(#7055)sentry.trace.parent_span_idtospan_id(#7055)raw_descriptioninruntimecontext on Mac Catalyst (#7082)configureDarkThemefor user feedback (#7114)SentryFramesTracker.removeListener(_:)(#7155)9.1.0
Warning
The class
SentryDsnhas been converted from Objective-C to Swift. While the public API remains the same, you might have to remove imports of theSentryDsn.hfrom your Objective-C code.We acknowledge that this is a breaking change introduced in a minor release, but it should have been part of the major release 9.0.0 already before - apologies for any inconveniences caused.
Breaking Changes
SentryDsnfrom Objective-C to Swift, removing theSentryDsn.hfrom the public header files.Features
SentryScope(#6830)SentryScopeattributes into log messages (#6834)Improvements
WillTerminateorWillResignActiveNotifications (#6909)Fixes
UIApplication sendAction:to:from:forEvent:(#6970)user.idnot set to installationId if no user is set (#7005)9.0.0
This changelog lists every breaking change. For a high-level overview and upgrade guidance, see the migration guide.
Breaking Changes
SentryEventDecoderto SPI (#6365)PreviewRedactOptions,SentryProfileOptions,SentryRedactViewHelper,SentryViewScreenshotOptions,SentryReplayOptions,SentryUserFeedbackConfiguration,SentryUserFeedbackFormConfiguration,SentryUserFeedbackThemeConfiguration,SentryUserFeedbackWidgetConfiguration,SentryFeedback, andSentryExperimentalOptionsfinal(#6365)setExtraValuefrom SentrySpan (#5864)integrationsproperty fromSentryOptions(#5749)defaultIntegrationsfunction fromSentryOptions(#6664)SentryEventDecodableinternal (#5808)spanproperty onSentryScopeis now readonly (#5866)SentryIntegrationProtocolfrom the API. This is not used after the removal of theintegrationsproperty (#6660)enablePerformanceV2option and makes this the default. The app start duration will now finish when the first frame is drawn instead of when the OS posts the UIWindowDidBecomeVisibleNotification. (#6008)SentryFrame.instructionproperty (#6504)uuidandnameofSentryDebugMeta(#6512) UsedebugIDinstead ofuuidandcodeFileinstead ofname.SentryFrame.functiondefault tonilinstead of<redacted>(#6608)valueandtypeofSentryExceptionto be nullable (#6563)getHashfrom SentryDsn (#6605)If you need a precompiled XCFramework built with Xcode 15, continue using Sentry SDK 8.x.x.
SentryException.typetonilwhenNSExceptionhas noreason(#6653). The backend then can provide a proper message when there is no reason.SentryLog.LevelandSentryLog.Attributefor ObjC (#6666)SentryFeedbackinitializer to support multiple attachments (#6752)These components run in separate processes or sandboxes with different execution characteristics, which can cause false positive app hang reports.
SentryLevelenum to be written in ObjC (#6802)http.response.status_codefor spans to int (#6896)Features
enablePropagateTraceparentto support OTel/W3C trace propagation (#6356)enableFileManagerSwizzlingfrom experimental options to top-level options (#6592).This option is still disabled by default and will be enabled in a future major release.
enableDataSwizzlingfrom experimental options to top-level options (#6592). This option remains enabled by default.sentry.replay_idattribute to logs (#6515)HubandClient(#6737)Fixes
SentryMechanismMetatoSentryMechanismContextto resolve Kotlin Multi-Platform build errors (#6607)SentryCppHelperto Sentry (#6754)beforeSend(#6910)Improvements
SentryAttachmentfor downstream SDKs (like sentry-godot) (#6521)9.0.0-rc.1
Breaking Changes
SentryEventDecoderto SPI (#6365)PreviewRedactOptions,SentryProfileOptions,SentryRedactViewHelper,SentryViewScreenshotOptions,SentryReplayOptions,SentryUserFeedbackConfiguration,SentryUserFeedbackFormConfiguration,SentryUserFeedbackThemeConfiguration,SentryUserFeedbackWidgetConfiguration,SentryFeedback, andSentryExperimentalOptionsfinal(#6365)setExtraValuefrom SentrySpan (#5864)integrationsproperty fromSentryOptions(#5749)defaultIntegrationsfunction fromSentryOptions(#6664)SentryEventDecodableinternal (#5808)spanproperty onSentryScopeis now readonly (#5866)SentryIntegrationProtocolfrom the API. This is not used after the removal of theintegrationsproperty (#6660)enablePerformanceV2option and makes this the default. The app start duration will now finish when the first frame is drawn instead of when the OS posts the UIWindowDidBecomeVisibleNotification. (#6008)SentryFrame.instructionproperty (#6504)uuidandnameofSentryDebugMeta(#6512) UsedebugIDinstead ofuuidandcodeFileinstead ofname.SentryFrame.functiondefault tonilinstead of<redacted>(#6608)valueandtypeofSentryExceptionto be nullable (#6563)getHashfrom SentryDsn (#6605)If you need a precompiled XCFramework built with Xcode 15, continue using Sentry SDK 8.x.x.
SentryException.typetonilwhenNSExceptionhas noreason(#6653). The backend then can provide a proper message when there is no reason.SentryLog.LevelandSentryLog.Attributefor ObjC (#6666)SentryFeedbackinitializer to support multiple attachments (#6752)These components run in separate processes or sandboxes with different execution characteristics, which can cause false positive app hang reports.
SentryLevelenum to be written in ObjC (#6802)Features
enablePropagateTraceparentto support OTel/W3C trace propagation (#6356)enableFileManagerSwizzlingfrom experimental options to top-level options (#6592).This option is still disabled by default and will be enabled in a future major release.
enableDataSwizzlingfrom experimental options to top-level options (#6592). This option remains enabled by default.sentry.replay_idattribute to logs (#6515)HubandClient(#6737)Fixes
SentryMechanismMetatoSentryMechanismContextto resolve Kotlin Multi-Platform build errors (#6607)SentryCppHelperto Sentry (#6754)Improvements
SentryAttachmentfor downstream SDKs (like sentry-godot) (#6521)9.0.0-rc.0
Breaking Changes
SentryEventDecoderto SPI (#6365)PreviewRedactOptions,SentryProfileOptions,SentryRedactViewHelper,SentryViewScreenshotOptions,SentryReplayOptions,SentryUserFeedbackConfiguration,SentryUserFeedbackFormConfiguration,SentryUserFeedbackThemeConfiguration,SentryUserFeedbackWidgetConfiguration,SentryFeedback, andSentryExperimentalOptionsfinal(#6365)setExtraValuefrom SentrySpan (#5864)integrationsproperty fromSentryOptions(#5749)defaultIntegrationsfunction fromSentryOptions(#6664)SentryEventDecodableinternal (#5808)spanproperty onSentryScopeis now readonly (#5866)SentryIntegrationProtocolfrom the API. This is not used after the removal of theintegrationsproperty (#6660)enablePerformanceV2option and makes this the default. The app start duration will now finish when the first frame is drawn instead of when the OS posts the UIWindowDidBecomeVisibleNotification. (#6008)SentryFrame.instructionproperty (#6504)uuidandnameofSentryDebugMeta(#6512) UsedebugIDinstead ofuuidandcodeFileinstead ofname.SentryFrame.functiondefault tonilinstead of<redacted>(#6608)valueandtypeofSentryExceptionto be nullable (#6563)getHashfrom SentryDsn (#6605)If you need a precompiled XCFramework built with Xcode 15, continue using Sentry SDK 8.x.x.
SentryException.typetonilwhenNSExceptionhas noreason(#6653). The backend then can provide a proper message when there is no reason.SentryLog.LevelandSentryLog.Attributefor ObjC (#6666)SentryFeedbackinitializer to support multiple attachments (#6752)These components run in separate processes or sandboxes with different execution characteristics, which can cause false positive app hang reports.
SentryLevelenum to be written in ObjC (#6802)Features
enablePropagateTraceparentto support OTel/W3C trace propagation (#6356)enableFileManagerSwizzlingfrom experimental options to top-level options (#6592).This option is still disabled by default and will be enabled in a future major release.
enableDataSwizzlingfrom experimental options to top-level options (#6592). This option remains enabled by default.sentry.replay_idattribute to logs (#6515)HubandClient(#6737)Fixes
SentryMechanismMetatoSentryMechanismContextto resolve Kotlin Multi-Platform build errors (#6607)SentryCppHelperto Sentry (#6754)Improvements
SentryAttachmentfor downstream SDKs (like sentry-godot) (#6521)9.0.0-alpha.1
Breaking Changes
SentryEventDecoderto SPI (#6365)PreviewRedactOptions,SentryProfileOptions,SentryRedactViewHelper,SentryViewScreenshotOptions,SentryReplayOptions,SentryUserFeedbackConfiguration,SentryUserFeedbackFormConfiguration,SentryUserFeedbackThemeConfiguration,SentryUserFeedbackWidgetConfiguration,SentryFeedback, andSentryExperimentalOptionsfinal(#6365)setExtraValuefrom SentrySpan (#5864)integrationsproperty fromSentryOptions(#5749)defaultIntegrationsfunction fromSentryOptions(#6664)SentryEventDecodableinternal (#5808)spanproperty onSentryScopeis now readonly (#5866)SentryIntegrationProtocolfrom the API. This is not used after the removal of theintegrationsproperty (#6660)enablePerformanceV2option and makes this the default. The app start duration will now finish when the first frame is drawn instead of when the OS posts the UIWindowDidBecomeVisibleNotification. (#6008)SentryFrame.instructionproperty (#6504)uuidandnameofSentryDebugMeta(#6512) UsedebugIDinstead ofuuidandcodeFileinstead ofname.SentryFrame.functiondefault tonilinstead of<redacted>(#6608)valueandtypeofSentryExceptionto be nullable (#6563)getHashfrom SentryDsn (#6605)If you need a precompiled XCFramework built with Xcode 15, continue using Sentry SDK 8.x.x.
SentryException.typetonilwhenNSExceptionhas noreason(#6653). The backend then can provide a proper message when there is no reason.SentryLog.LevelandSentryLog.Attributefor ObjC (#6666)SentryFeedbackinitializer to support multiple attachments (#6752)Fixes
SentryMechanismMetatoSentryMechanismContextto resolve Kotlin Multi-Platform build errors (#6607)SentryCppHelperto Sentry (#6754)Improvements
SentryAttachmentfor downstream SDKs (like sentry-godot) (#6521)Features
enablePropagateTraceparentto support OTel/W3C trace propagation (#6356)enableFileManagerSwizzlingfrom experimental options to top-level options (#6592).This option is still disabled by default and will be enabled in a future major release.
enableDataSwizzlingfrom experimental options to top-level options (#6592). This option remains enabled by default.sentry.replay_idattribute to logs (#6515)HubandClient(#6737)9.0.0-alpha.0
Breaking Changes
SentryEventDecoderto SPI (#6365)PreviewRedactOptions,SentryProfileOptions,SentryRedactViewHelper,SentryViewScreenshotOptions,SentryReplayOptions,SentryUserFeedbackConfiguration,SentryUserFeedbackFormConfiguration,SentryUserFeedbackThemeConfiguration,SentryUserFeedbackWidgetConfiguration,SentryFeedback, andSentryExperimentalOptionsfinal(#6365)setExtraValuefrom SentrySpan (#5864)integrationsproperty fromSentryOptions(#5749)defaultIntegrationsfunction fromSentryOptions(#6664)SentryEventDecodableinternal (#5808)SentryIntegrationProtocolfrom the API. This is not used after the removal of theintegrationsproperty (#6660)debug=Truewhich fixes various deadlocks (#6562)enablePerformanceV2option and makes this the default. The app start duration will now finish when the first frame is drawn instead of when the OS posts the UIWindowDidBecomeVisibleNotification. (#6008)SentryFrame.instructionproperty (#6504)uuidandnameofSentryDebugMeta(#6512) UsedebugIDinstead ofuuidandcodeFileinstead ofname.SentryFrame.functiondefault tonilinstead of<redacted>(#6608)valueandtypeofSentryExceptionto be nullable (#6563)getHashfrom SentryDsn (#6605)If you need a precompiled XCFramework built with Xcode 15, continue using Sentry SDK 8.x.x.
SentryException.typetonilwhenNSExceptionhas noreason(#6653). The backend then can provide a proper message when there is no reason.SentryLog.LevelandSentryLog.Attributefor ObjC (#6666)Fixes
SentryMechanismMetatoSentryMechanismContextto resolve Kotlin Multi-Platform build errors (#6607)Improvements
SentryAttachmentfor downstream SDKs (like sentry-godot) (#6521)Features
enablePropagateTraceparentto support OTel/W3C trace propagation (#6356)enableFileManagerSwizzlingfrom experimental options to top-level options (#6592).This option is still disabled by default and will be enabled in a future major release.
enableDataSwizzlingfrom experimental options to top-level options (#6592). This option remains enabled by default.sentry.replay_idattribute to logs (#6515)8.58.0
Features
options.sessionReplay.includedViewClassesandoptions.sessionReplay.excludedViewClassesto ignore views from subtree traversal (#7063)Fixes
Encode SwiftUI internal class names in session replay redaction to avoid false-positive App Store review rejections (#7123)
Full CHANGELOG.md diff