feat(apple): add enableUIViewControllerInitSwizzling option - #18946
Open
philipphofmann wants to merge 6 commits into
Open
feat(apple): add enableUIViewControllerInitSwizzling option#18946philipphofmann wants to merge 6 commits into
philipphofmann wants to merge 6 commits into
Conversation
…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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
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>
9 tasks
philipphofmann
marked this pull request as ready for review
August 5, 2026 09:15
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>
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>
NinjaLikesCheez
approved these changes
Aug 6, 2026
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.
DESCRIBE YOUR PR
Documents the new experimental
enableUIViewControllerInitSwizzlingoption being introduced in sentry-cocoa#8687. This option swizzles eachUIViewControllersubclass on first init instead of scanning binary images at startup, which can avoid theSentrySubClassFinder actOnSubclassesOfViewControllerInImagecrash.IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes: