Go to "Build Settings", look for "Apple LLVM compiler 3.0 - Language". Set the field
"Objective-C Automatic Reference Counting" to "No".
For individual files:
Go to "Build Phases", select the file, double-click the "Compiler Flags" column and put
"-fno-objc-arc" in it.
9
votes
To enable ARC per-file, you can also set your "Compiler Flags" under "Build Phases" to -fobjc-arc. Make sure your compiler is set to Apple LLVM compiler 4.x and notLLVM GCC 4.2.
2
votes
In XCode 4.6 this property has now changed to CLANG_ENABLE_OBJC_ARC
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more