Skip to content

Instantly share code, notes, and snippets.

@Adnan1990
Created March 20, 2014 11:52
Show Gist options
  • Select an option

  • Save Adnan1990/9662110 to your computer and use it in GitHub Desktop.

Select an option

Save Adnan1990/9662110 to your computer and use it in GitHub Desktop.
Adding or Removing ARC from Single File
If you want to exclude a file from being compiled with ARC you can do so by setting a flag on the .m file:
Click the Project -> Build Phases Tab -> Compile Sources Section -> Double Click on the file name
Then add -fno-objc-arc to the popup window.
Likewise, if you want to include a file in ARC, you can use the -fobjc-arc flag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment