iOS 5 Best Practice (Release/retain?)

For anyone still curious about how to turn off ARC on individual files, here’s what I did:

  1. Go to your project settings, under Build Phases > Compile Sources
  2. Select the files you want ARC disabled and add -fno-objc-arc compiler flags. You can set flags for multiple files in one shot by selecting the files then hitting “Enter” key.

I don’t know if this is the recommended way, but it works for me.

PS: I gathered this information from clang.llvm.org here which is publicly accessible, thus not under NDA.

Leave a Comment