TechDiary Tech Blog
Zombie Object Debugging Principle and Usage Skills
Seren
|
15 Aug, 2026
Leave a comment
EXC_BAD_ACCESS crashes are among the most frustrating errors in iOS development. You see a memory address, no stack trace, no hints — just a blank console staring back at you. Later I learned that this crash is usually caused by accessing a deallocated object — a “dangling pointer” problem. And Xcode’s “Zombie Objects” debugging tool […]
MRC and ARC Mixed Compilation Adaptation Rules
Seren
|
13 Aug, 2026
Leave a comment
Mixing ARC and MRC in a single Xcode project sounds like a recipe for disaster, but sometimes it is the only option when inheriting legacy codebases or integrating third-party libraries. Later, when I inherited a legacy project, I discovered it contained a bunch of MRC third-party libraries, and compilation immediately failed. After researching, I learned […]
Stack Block, Heap Block, Global Block Lifecycle Management
Seren
|
10 Aug, 2026
Leave a comment
Blocks in Objective-C come in three distinct flavors — Global, Stack, and Heap — each with its own lifecycle rules and memory behavior that most developers never consciously think about. It wasn’t until I encountered a wild pointer crash under MRC that I realized Blocks have three different forms in memory: Global Blocks, Stack Blocks, […]
