Skip to content

feat(apple): add enableUIViewControllerInitSwizzling option - #18946

Open
philipphofmann wants to merge 6 commits into
masterfrom
docs/apple-ui-view-controller-init-swizzling
Open

feat(apple): add enableUIViewControllerInitSwizzling option#18946
philipphofmann wants to merge 6 commits into
masterfrom
docs/apple-ui-view-controller-init-swizzling

Conversation

@philipphofmann

@philipphofmann philipphofmann commented Aug 5, 2026

Copy link
Copy Markdown
Member

DESCRIBE YOUR PR

⚠️ Do not merge until sentry-cocoa 9.26.0 (or whichever version ships getsentry/sentry-cocoa#8687) is released.

Documents the new experimental enableUIViewControllerInitSwizzling option being introduced in sentry-cocoa#8687. This option swizzles each UIViewController subclass on first init instead of scanning binary images at startup, which can avoid the SentrySubClassFinder actOnSubclassesOfViewControllerInImage crash.

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • sentry-cocoa 9.26.0 (or the release containing Bump API schema to 0e93745d #8687) has shipped
  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

…g option

Adds the new experimental.enableUIViewControllerInitSwizzling option (sentry-cocoa#8687) to the Swizzling Options reference and as an alternative fix in the SentrySubClassFinder crash troubleshooting section.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview Aug 5, 2026 11:29am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Aug 5, 2026 11:29am

Request Review

@codeowner-assignment
codeowner-assignment Bot requested a review from a team August 5, 2026 09:06
@philipphofmann philipphofmann changed the title docs(apple): document experimental enableUIViewControllerInitSwizzling option feat(apple): add enableUIViewControllerInitSwizzling option Aug 5, 2026
philipphofmann and others added 3 commits August 5, 2026 11:07
Keep only the first Objective-C sample (SentryObjC's is redundant) and state that the experimental option fixes rather than may fix the crash.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ix their crash

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Comment thread docs/platforms/apple/common/configuration/options.mdx Outdated
The option is declared in SentryExperimentalOptions, so the real API is
options.experimental.enableUIViewControllerInitSwizzling. Move the entry
from Swizzling Options to the experimental section and rename it to match,
aligning the options page with the troubleshooting examples.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Comment thread docs/platforms/apple/common/troubleshooting/index.mdx
Every other swizzling snippet on the page has Swift, Objective-C, and
SentryObjC variants; the option is exposed on SentryObjCExperimentalOptions,
so omitting it left wrapper users unsure whether it's supported.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants