Skip to content

Instantly share code, notes, and snippets.

@theaudience
Created December 18, 2011 17:09
Show Gist options
  • Save theaudience/1493948 to your computer and use it in GitHub Desktop.
Save theaudience/1493948 to your computer and use it in GitHub Desktop.
Turn off ARC on individual files
To turn off ARC for individual files you have to set the -fno-objc-arc compiler flag to these files.
Open your project in Xcode
1. Click on the project name on the left of Xcode
2. Select the target
3. Click on the build phases tab
4. Select the files in which you want to turn off ARC (you can select multiple files by holding CMD.
5. Press Enter on multiple files or double click on a single file
6. Type "-fno-objc-arc" without the quotes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment