Tagged articles
4 articles
Page 1 of 1
Tencent Music Tech Team
Tencent Music Tech Team
Dec 22, 2023 · Mobile Development

Root Cause Analysis of iOS Crash Caused by Method Swizzle on NSString

The app crashed on launch because a third‑party SDK swizzled NSString’s stringByAppendingString: with a method whose name conflicted with the app’s own swizzle, causing recursive calls through the __NSCFString class‑cluster and a stack overflow; renaming the methods with a unique prefix and excluding __NSCFString from swizzling resolves the issue.

Class ClusterMethod SwizzleObjective‑C
0 likes · 11 min read
Root Cause Analysis of iOS Crash Caused by Method Swizzle on NSString
Tencent TDS Service
Tencent TDS Service
Jun 8, 2017 · Mobile Development

Why iOS CoreMotion Crashes on QQ: Debugging Misaligned Address Errors

An in‑depth investigation of a CoreMotion‑related crash in the latest QQ mobile app reveals misaligned address access caused by unsafe multithreaded use of UIAccelerometer and CMMotionManager, and demonstrates how to reproduce, trace, and fix the issue by moving accelerometer operations back to the main thread.

CMMotionManagerCoreMotionUIAccelerometer
0 likes · 11 min read
Why iOS CoreMotion Crashes on QQ: Debugging Misaligned Address Errors