chore(deps): update Cocoa SDK to v9.27.0 - #1280
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
110f43e to
52ee674
Compare
a47230a to
5a728b2
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
7c099b2 to
36ecd89
Compare
36ecd89 to
fd2cc1b
Compare

Bumps scripts/update-cocoa.sh from 9.24.0 to 9.27.0.
Auto-generated by a dependency updater.
Changelog
9.27.0
Note
enableLogsandenableMetricsare now deprecated and will be removed in the next major version. Manual log and metric capture is no longer gated by these flags.Improvements
enableLogs/enableMetrics(#8918)Features
SentrySDK.replay. (#8868)start()andstartBuffering()calls bypass the configured replay sample rates; sampling still controls automatic startup.start()starts a full-session replay and does nothing if one is already recording.startBuffering()keeps a rolling buffer that is sent onflush()or an error, then continues in session mode.stop()ends the current replay; the nextstart()creates a new replay session.pause()suspends recording untilresume()and remains paused across background and foreground transitions and automatic replay restarts in the same process.resume()continues the same manually paused replay.flush()sends the current replay data to Sentry, or starts a full-session replay when recording is stopped.Improvements
Features
app.vitals.start.typeandapp.vitals.start.screenonto standaloneapp.startchildren, includingapp.start.extendedand user descendants (#8888)maxFeatureFlagsoption to configure how many feature flag evaluations the scope retains, matching sentry-java. Defaults to 100 (#8858)SentrySDK.internal.envelope.captureNonTerminatingfor hybrid SDKs, which keeps the current session running and reports it with theunhandledstatus when an unhandled exception doesn't terminate the process (#8654)SentrySDK.internal.envelope.updateSessionForDroppedEventNonTerminatingso hybrid SDKs can update the native session when an error is dropped by sampling, without sending an envelope (#8907)Fixes
SentryCrashCxaThrowSwapperfor empty sections (#8915)Internal
9.26.1
Fixes
9.26.0
Warning
The 3rd-party integration packages (SentryCocoaLumberjack, SentryPulse, SentrySwiftLog, SentrySwiftyBeaver) now require Swift 6.1+ to support SPM package traits. Users on older Swift toolchains should pin to an earlier release of these packages.
Features
enableStandaloneAppStartTracingfromoptions.experimentalto a top-level option onOptions(#8715)SentryFromBinary(default) andSentryFromSourceSPM package traits to 3rd-party integrations, allowing users to choose between precompiled xcframeworks and building from source. Requires Swift 6.1+ (#8795)enableUIViewControllerInitSwizzlingthat defersUIViewControllerswizzling to first instantiation instead of eagerly discovering and swizzling all subclasses at SDK start. This avoids realizingavailable-gatedUIViewControllersubclasses on OS versions below their gate, which crashes apps on start (#8687).form.enableScreenshot = truein theconfigureFormcallback.Improvements
Fixes
URLSessionTask.currentRequestduring trace header propagation (#8650)Internal
9.25.0
Warning
This release raises the minimum deployment targets to macOS 12 and watchOS 9. Apps that support older OS versions must use an earlier Sentry Cocoa release.
Features
SentrySDK.feedback.enableOnShake()anddisableOnShake()to toggle the shake-to-report gesture at runtime (#8591)Fixes
durationsent for active sessions (#8612)durationis now set only when the session ends. Active sessions (including on error increments) no longer emit a bogusduration.-[UIApplication applicationState](8672)9.24.0
Breaking Changes
Full CHANGELOG.md diff