Disable ARC Compilation in Xcode for an iOS/Objective-C File

Screen Shot 2014-02-25 at 3.04.50 PMIn some cases, you want to disable ARC in your project just for one or some subset of files. Usually this is the case, for me, that I’m using a file from an online repository that I don’t want to change for various reasons.

The way to disable ARC for that file is in the file’s compiler flags in the Target->Build Phases->Compile Sources.

 

Double-click on the area under Compiler Flags and type (click on image to enlarge):

-fno-objc-arc

That’s it!

Comments are closed.