Xcode 4 How To – Exclude A File From ARC
ARC (Automatic Reference Counting) is great addition to Xcode 4. It saves you time and aggravation of releasing objects from memory. However, there may be several libraries out there that have not been converted to ARC that you would like to inclue in your project. Rather than going through each file an converting it yourself, there is a way to exclude those file from ARC.
- Click on the Target
- Click on Build Phases
- Open the Compile Sources section
- Find file you want to exclude and double click on it.
- Enter the following in to the dialog box -fno-objc-arc and click Done
Comments are closed.