I have an application I am updating to the latest version of Xcode and am being hit by multiple errors related to Automatic Reference Counting (ARC).
The errors call me to pull calls to e.g., autorelease
and tweaking other code I have written that deals with memory management.
The Clang documentation reads:
[ARC] does not provide a cycle collector; users must explicitly manage lifetime instead.
... which makes me very nervous. I've been bitten by Objective-C memory management issues in the past, and slaved over justifying every retain
, release
and autorelease
in my code.
Now ARC is calling me to take a leap of faith in altering my memory management semantics. What do I need to know to establish faith in ARC's memory management?