Xcode - Disable ARC for individual files

Published 25 Jul 2012

I am building an app that uses ARC (Automatic Reference Counting). Previously, I also chose to rewrite all non-ARC code, since the compiler will not compile code that uses release, dealloc (incorrectly) etc.

However, instead of rewriting all of your code, you could disable ARC for single files instead. Just add a flag to the file under “Build phases” and the compiler will ignore ARC for the specific file.

It is all wonderfully described on this page.