It is possible to disable ARC for individual files by adding the
-fno-objc-arc
compiler flag for those files.
You add compiler flags in Targets -> Build Phases -> Compile Sources. You have to double click on the right column of the row under Compiler Flags. You can also add it to multiple files by holding the cmd button to select the files and then pressing enter to bring up the flag edit box.
I created a sample project that has an example: https://github.com/jaminguy/NoArc
See this answer for more info: Disable Automatic Reference Counting for Some Files
156
|
Disable ARC on MULTIPLE files:
;)
| ||||||||||||||||||||||||
|
7
|
For Xcode 4.3 the easier way might be: Edit/Refactor/Convert to objective-C ARC, then check off the files you don't want to be converted. I find this way the same as using the compiler flag above.
| ||
0
|
Just use the -fno-objc-arc flag in build phases>compile sources
|
-fno-objc-arc
and it will be added to all selected files. edit just saw the answer below this one :( – pkyeck Apr 7 at 13:08