How to disable ARC for just a few project files?

0

I have a project using ARC but would like to add files that are not using ARC. Is it possible to do this?

    
asked by anonymous 13.01.2015 / 03:30

1 answer

0

Yes, you can disable ARC for just a few files by adding the -fno-objc-arc build flag to them.

You add compilation flags in Targets - > Build Phases - > Compile Sources. Double-click the right column in Flags Compiler . You can also add multiple files by clicking ⌘ , selecting them and pressing enter to open the flags editing dialog.

Note:based this SO question

Attention: See more about mixing ARC and non-ARC for this OS question: Disable Automatic Reference Counting for Some Files

    
13.01.2015 / 03:34