I have a project using ARC but would like to add files that are not using ARC. Is it possible to do this?
I have a project using ARC but would like to add files that are not using ARC. Is it possible to do this?
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