Reverse Engineering iOS to Fix SDK Crashes
Blog post from Sentry
A recent issue in the Sentry Cocoa SDK was triggered by a change in iPadOS 26, where UIPrintPanelViewController began overriding the isKindOfClass: method to return true for UISplitViewController casts, despite not being a subclass. This unexpected behavior caused the SDK to crash when accessing non-existent methods, specifically when using the standard iOS UIPrintInteractionController with Sentry’s User Interaction Tracing enabled. The team investigated by analyzing Objective-C’s dynamic runtime and Apple's private frameworks, confirming the override of isKindOfClass: in UIPrintPanelViewController. The fix involved implementing a runtime check with respondsToSelector: to ensure the presence of the viewControllers method before access, thereby preventing further crashes. This solution, though not elegant, allowed for a quick release of a hotfix to address the issue.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| LLM | 1 | 3,775 | 638 | 202 | -32% |
| Observability | 1 | 2,671 | 527 | 151 | +5% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.