0

I pass to the Automatic Reference Counting on my ios5 app, but I have 2 or 3 file that they are so complicated to do the transition for the arc. So, is it possible to specified that a certain file will not use the arc?

Sorry for my very bad english... Hope you understand.

Ben Lings
  • 28,823
  • 13
  • 72
  • 81
Alex
  • 141
  • 1
  • 1
  • 5
  • possible duplicate of [Convert App to ARC while ignoring files?](http://stackoverflow.com/questions/8335873/convert-app-to-arc-while-ignoring-files) – Brad Larson Dec 21 '11 at 16:43
  • 2
    possible duplicate of [Automatic Reference Counting for Some Files](http://stackoverflow.com/questions/6448874/automatic-reference-counting-for-some-files) – jscs Dec 21 '11 at 20:05

1 Answers1

6

Go to your target > Build Phases > Compile sources and add the -fno-objc-arc flag to your files

Mathieu Hausherr
  • 3,485
  • 23
  • 30
  • When I add a flag to a file, after I did edit > refactor > convert to arc, but the flag that I added disappear and the file is still a problem, it seems like I must save after added a flag? – Alex Dec 21 '11 at 16:54
  • Just don't refractor your code. With this tag, your file (and only this file) is compiled without ARC. – Mathieu Hausherr Dec 21 '11 at 17:24