chore(deps): update Cocoa SDK to v9.27.0 - #2830
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
bruno-garcia
force-pushed
the
deps/modules/sentry-cocoa/9.27.0
branch
from
September 4, 2026 03:02
a50654a to
aa3e83d
Compare
| @@ -1 +1 @@ | |||
| Subproject commit a00a9784fff7193cbb0f9fae509fec8107e07744 | |||
| Subproject commit aaf96c4a417d30208b3c25d90910d6156ddc973d | |||
There was a problem hiding this comment.
Bug: The Unity wrapper passes deprecated enableLogs and enableMetrics flags to the Cocoa SDK, which now ignores them, creating a configuration mismatch and potential for unintended data capture.
Severity: LOW
Suggested Fix
The bridge should stop passing the deprecated enableLogs and enableMetrics options to the Cocoa SDK, as they are now no-ops. Alternatively, this change in behavior and the deprecation of these flags should be clearly documented for users to prevent confusion.
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#L1
Potential issue: The update to Cocoa SDK 9.27.0 deprecates the `enableLogs` and
`enableMetrics` flags, meaning they no longer control log or metric capture in the
native iOS layer. However, the Unity bridge continues to pass these options from the C#
layer. While the C# code currently gates features using these flags, this creates a
discrepancy. If a user sets `options.EnableLogs = false`, they expect no logs to be
captured. But if any native Cocoa code attempts to capture logs or metrics directly, it
will succeed because the native SDK no longer respects the deprecated flag, leading to
unexpected data capture.
Did we get this right? 👍 / 👎 to inform future reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps modules/sentry-cocoa from 9.26.1 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