Skip to content

chore(deps): update Cocoa SDK to v9.35.0 - #5949

Merged
ric-oliv merged 2 commits into
mainfrom
deps/modules/sentry-cocoa
Nov 17, 2026
Merged

ric-oliv merged 2 commits into
mainfrom
deps/modules/sentry-cocoa

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Bumps modules/sentry-cocoa from 9.34.0 to 9.35.0.

Auto-generated by a dependency updater.

Changelog

9.35.0

Features

  • Add options.webViewTracing to connect the traces of every WKWebView automatically, keeping the trace current across page loads (#9538)
    • Expose options.webViewTracing through the SentryObjC SDK as SentryObjCOptions.webViewTracing (#9539)
    • See the WebView docs for details.
  • Add the launchTimeToFirstDraw, launchResumeTime, launchOptimizedTimeToFirstDraw, launchExtended, responsivenessHangTime and cellularConditionTime metric reports, which send MetricKit histograms as distributions with one value per sample, up to about 100 values per histogram (#9493)
  • Report the low power mode and TestFlight state that MetricKit records with a diagnostic of a previous app run as device.low_power_mode and an app.build_type of test, and take app.app_identifier from the diagnostic instead of the running app (#9523)

Fixes

  • Read attachAllThreads, enableDataSwizzling and enableStandaloneAppStartTracing from the options dictionary that hybrid SDKs pass to the native SDK (#9586)
  • Preserve a fallback stack trace and the crashing thread when the experimental C++ exception monitor (V2) misses a throw hook (#9612)

Improvements

  • Match Session Replay network detail allow and deny URL patterns once per URL session task and reuse the decision for later state changes and response capture, instead of matching on every call (#9316)

  • Count error events captured with captureEvent in the current session's error count, as the Java and Native SDKs do, so hybrid SDKs such as Godot and Unreal report errored sessions. App hangs and events from a previous process still don't count (#9597)

Improvements

  • Speed up resolving class names for UIViewController breadcrumbs and performance tracking, which could take several milliseconds per new view controller type on the main thread in apps with many protocol conformances, especially on simulators (#9544)

@github-actions github-actions Bot added the Dependencies Pull requests that update a dependency file label Nov 17, 2026
@bruno-garcia
bruno-garcia force-pushed the deps/modules/sentry-cocoa branch from 7ec6cf4 to 858d7c7 Compare November 17, 2026 03:01
@github-actions github-actions Bot added the risk: low PR risk score: low label Nov 17, 2026
@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.71%. Comparing base (217898c) to head (483a58c).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5949      +/-   ##
==========================================
+ Coverage   77.70%   77.71%   +0.01%     
==========================================
  Files         535      535              
  Lines       19731    19731              
  Branches     3934     3934              
==========================================
+ Hits        15332    15334       +2     
+ Misses       3544     3542       -2     
  Partials      855      855              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

StructsAndEnums.cs is the generate-cocoa-bindings.ps1 output from the
macOS CI run of this PR (blob 22d364c). The patch script now drops
SentryObjCOptions.WebViewTracing, whose SentryObjCWebViewTracingOptions
type isn't in the KeepInterfaces whitelist, so ApiDefinition.cs is
unchanged.

Co-Authored-By: Ricardo Oliveira <ricardo.oliveira@sentry.io>
@ric-oliv
ric-oliv merged commit 04c1c8d into main Nov 17, 2026
60 checks passed
@ric-oliv
ric-oliv deleted the deps/modules/sentry-cocoa branch November 17, 2026 10:40
ric-oliv added a commit that referenced this pull request Nov 19, 2026
Seven jobs repeated the steps that compute the Cocoa SDK cache key and restore the cache. They
now call restore-cocoa-sdk, which replaces cocoa-cache-key and keeps the release-branch rule in one
place. The device tests and warm-cocoa-cache still restore on release branches.

After a cache miss every macOS job builds the Cocoa SDK at once, and only the first save stores
anything: on the #5949 merge push five jobs saved and one main entry was created. Only build-sentry,
which always builds the Cocoa SDK on a miss, and warm-cocoa-cache save the cache now.

Refs #3852

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
jamescrosswell added a commit that referenced this pull request Nov 19, 2026
* ci: Run the iOS trim analysis without signing certificates

The iOS publish of Sentry.MauiTrimTest was commented out because a device build asked for
signing certificates. Trimming and NativeAOT compilation run before code signing, so publishing
with EnableCodeSigning=false gives the same analysis. The step also skips the Xcode version check,
because the net10.0-ios26 pack only accepts Xcode 26.0 and the runner only has 27.2.

iOS uses TrimMode=partial and treats MT2387 as an error, which catches the launch crash from
#5855 if IsTrimmable ever leaves Sentry.Bindings.Cocoa. The job restores the Cocoa SDK cache
instead of building it from source.

Fixes #3852

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: Share the Cocoa SDK cache restore and save it from one job (#5963)

Seven jobs repeated the steps that compute the Cocoa SDK cache key and restore the cache. They
now call restore-cocoa-sdk, which replaces cocoa-cache-key and keeps the release-branch rule in one
place. The device tests and warm-cocoa-cache still restore on release branches.

After a cache miss every macOS job builds the Cocoa SDK at once, and only the first save stores
anything: on the #5949 merge push five jobs saved and one main entry was created. Only build-sentry,
which always builds the Cocoa SDK on a miss, and warm-cocoa-cache save the cache now.

Refs #3852

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* ci: Add .NET 11 to the MAUI trim analysis (#5962)

* ci: Add .NET 11 to the MAUI trim analysis

The package ships net11.0-ios27.2 and net11.0-android37.0, but Sentry.MauiTrimTest only targeted
net10. Add both TFMs and a publish step for each to the trim-analysis job.

The .NET 11 iOS SDK rejects the 2024 MAUI template, so the app follows a fresh dotnet new maui:
a scene delegate and UIApplicationSceneManifest (MT7199), no Frame and ListView styles (CS0618)
and a nullable sender in MainPage (CS8622). Android on .NET 11 needs API 24. Only the net10 iOS
publish still skips the Xcode version check, because the net11 pack accepts Xcode 27.2.

Refs #3852

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: Report trim warnings in the Android trim analysis

The Android SDK defaults release builds to partial trimming, and with it sets
SuppressTrimAnalysisWarnings, so the Android publishes of Sentry.MauiTrimTest never reported a trim
warning. Full trimming turns the analysis back on. Both Android publishes stay clean, and both now
fail with IL2057 when Android code uses [SuppressMessage] where it needs
[UnconditionalSuppressMessage].

Refs #3852

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: Note how to bump the trim apps' TFMs

The trim apps keep literal TFMs, so a .NET major bump has to update them, the Android and iOS
minimum versions in Sentry.MauiTrimTest and the trim-analysis publish steps by hand.

Refs #3852

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Apply suggestion from @jamescrosswell

Co-authored-by: James Crosswell <jamescrosswell@users.noreply.github.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: James Crosswell <jamescrosswell@users.noreply.github.com>

* ci: Also publish the iOS trim app with full trimming

The trim app publishes iOS with partial trimming, because that's the
setup #5855 crashed in, and only partial trimming reports MT2387. This
adds a publish of the latest iOS TFM with MtouchLink=Full, the link mode
NativeAOT apps get when they set neither MtouchLink nor TrimMode. Unlike
-p:TrimMode=full, it doesn't trigger the SDK's warning against setting
TrimMode with NativeAOT. -p:TrimMode= doesn't work for this: as a global
property it keeps TrimMode empty, which no real app does.

The step deletes the app's obj and bin output for that TFM first. Today's
SDK reruns the assembly preparer and ILC when only the link mode changes,
but nothing guarantees that.

The trim-analysis steps now read their TFMs from Directory.Build.props
instead of spelling them out. They follow the next TFM bump, and fail
with NETSDK1005 until Sentry.MauiTrimTest targets the new TFMs.

Refs #3852

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: James Crosswell <jamescrosswell@users.noreply.github.com>
This was referenced Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies Pull requests that update a dependency file risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants