chore(deps): update Cocoa SDK to v9.30.0 - #1280
github-actions[bot] wants to merge 1 commit into
Conversation
e3d555b to
bc99146
Compare
bc99146 to
1180e2b
Compare
1180e2b to
e331b08
Compare
00ffe52 to
a979c69
Compare
a979c69 to
9d7a8c7
Compare
9cb7643 to
079f01b
Compare
079f01b to
003f08e
Compare
fb513d3 to
7c76683
Compare
7c76683 to
8691940
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.
Reviewed by Cursor Bugbot for commit 8691940. Configure here.
2102310 to
110f43e
Compare
7e20239 to
2c342cc
Compare
2c342cc to
cd9d4d9
Compare
| dependencies: [ | ||
| .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", "7.0.0"..<"9.0.0"), | ||
| .package(url: "https://github.com/getsentry/sentry-cocoa", from: "9.16.1") | ||
| .package(url: "https://github.com/getsentry/sentry-cocoa", from: "9.26.1") |
There was a problem hiding this comment.
Bug: The code uses PrivateSentrySDKOnly, which is deprecated in Sentry Cocoa 9.26.1. This will become a breaking change in a future major version.
Severity: MEDIUM
Suggested Fix
Migrate all calls from the deprecated PrivateSentrySDKOnly to the new SentrySDK.internal equivalents. For example, replace PrivateSentrySDKOnly.setSdkName() with SentrySDK.internal.sdk.setName() and PrivateSentrySDKOnly.installationID with SentrySDK.internal.sdk.installationID. This will resolve the deprecation warnings and prevent breaking changes in future major versions of the Sentry Cocoa SDK.
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: Package.swift#L14
Potential issue: The pull request updates the Sentry Cocoa SDK to version 9.26.1 but
continues to use the `PrivateSentrySDKOnly` API, which has been deprecated in favor of
`SentrySDK.internal`. While the deprecated API remains functional in the 9.x series and
will only produce compile-time warnings, it is scheduled for removal in the next major
version (10.0.0). This introduces a maintenance debt that will lead to a breaking change
and compilation failures once the dependency is updated to version 10.0.0 or later. The
code should be migrated to the new APIs to ensure future compatibility.
Also affects:
SentryCapacitor.podspec:15~15
36ecd89 to
fd2cc1b
Compare
fd2cc1b to
53f6a79
Compare
53f6a79 to
8875232
Compare
64c2c87 to
f9e709d
Compare
f9e709d to
836a957
Compare
08028cf to
630b774
Compare
682f001 to
7f8c962
Compare
7f8c962 to
062e40d
Compare
062e40d to
71601cb
Compare

Bumps scripts/update-cocoa.sh from 9.28.0 to 9.30.0.
Auto-generated by a dependency updater.
Changelog
9.30.0
Features
enableUnhandledCPPExceptionsV2remains non-deprecated underoptions.experimentalin v9, disabled by default, with dictionary-based initialization support.enablePersistingTracesWhenCrashingis now stable and remains disabled by default.attachViewHierarchyis now stable and remains disabled by default.enableTimeToFullDisplayTracingis now stable and remains disabled by default because applications must explicitly callSentrySDK.reportFullyDisplayed().swiftAsyncStacktracesis now stable and remains disabled by default.enableGraphQLOperationTrackingis now stable and remains disabled by default.enableFileManagerSwizzlingis now stable, remains disabled by default, and supports dictionary-based initialization.connection_typeto the device context of events, which reportswifi,ethernet,cellular, ornone(#9097).On iOS, cellular connections additionally report the network technology in
connection_effective_type, for example4gor5g.Fixes
objcextensions in static builds by adding referenced dummyNSObjectsubclasses, and lint for this with a SwiftSyntax SwiftLint extra rule (#9160)9.29.2
Fixes
beforeSendWithHintto attach files to fatal events (#9153)isMetricKitEventunrecognized selector crash when statically linking the SDK without-ObjC, including when MetricKit is disabled (#9155)9.29.1
Caution
Known issue: This release can crash apps statically linking the SDK without
-ObjCwith-[SentryEvent isMetricKitEvent]: unrecognized selector, even when MetricKit is disabled. Add-ObjCto the app target's linker flags, preserving$(inherited), or pin to 9.29.0 until a fix is released. See #9154.Fixes
options.experimental.enableNewURLLoaderSwizzling = true(disabled by default) (#8845)trace_idsin replay events to enable searching replays by trace ID (#9092)enableMetricKitRawPayloadis enabled, without attaching unrelated current-thread stack traces (#9070)enableAppHangTrackingso applications can continue opting out of App Hang tracking until its removal in v10 (#9094)appHangTimeoutIntervalvalues of 0 or lower to the default of 2 seconds, which previously spun the app hang tracker thread in a busy loop (#9020)9.29.0
Warning
Native crashes now set
mechanism.synthetic, which takes the mach exception name (EXC_BAD_ACCESS) or signal name (SIGSEGV) out of the grouping hash. Expect a one-time regrouping as your app adopts this version: existing crash issues stop receiving events and new ones open. Crashes that differ only by signal at the same stacktrace now share one issue. The mach and signal detail stays onmechanism.meta.Fixes
[NSURLSessionTask cancel]when cancelling an in-flight task with swizzling enabled (#9009)replayIdwhen Session Replay is stopped manually, so events captured afterstop()are no longer linked to a replay that is no longer recording (#9017)machandsignalcrash mechanisms assyntheticso an Apple crash groups with the identical crash reported by the other Sentry SDKs (#9004)mechanism.handledtofalseon crash reports without mach context, which previously left it unset (#9004)Deprecations
options.enableMetricKit = true. TheappHangTimeoutIntervaloption remains supported for watchdog termination classification. (#8944)