Skip to content

Instantly share code, notes, and snippets.

@gdavis
Created May 30, 2012 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdavis/2837065 to your computer and use it in GitHub Desktop.
Save gdavis/2837065 to your computer and use it in GitHub Desktop.
Turn off ARC for a specific file
In Xcode, go to the target for the app, Build Phases, and find the file you want to have ARC ignore in Compile Sources. Double-click the file, and in the popup add this compiler flag:
-fno-objc-arc
And when you compile Xcode will turn off ARC! Yay!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment