Last Updated: February 25, 2016
·
1.621K
· taglia

Exclude specific files from ARC in Xcode

Apple introduced Automatic Reference Counting (ARC) in Xcode 4.2, but many third party libraries and open source code are not yet compliant with ARC.

If you find yourself wasting time adapting to ARC code that you did not write, you may find this useful: it is possible to exclude specific files from ARC.

In the "Compile Sources" build phase, just add the following flag to the files you don't want to be pre-processed with ARC:

-fno-objc-arc

Just follow these steps:
Picture