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:
Written by Cesare Tagliaferri
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Arc
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#