To disable ARC completely from an XCode project follow the steps below –
- Select Project
- Select Targets
- From the Right Panel, Select Build Settings
- Search for “Automatic Reference Counting”
- Locate Apple LLVM compiler x.x – Language and Objective-C Automatic Reference Counting and select NO in all three sections.
You can 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 command button to select the files and then pressing enter to bring up the flag edit box.