Xcode 4.2 and ARC, why is it not included for me?

I just installed Xcode 4.2, in line with everything I read. ARC turns on automatically, and you need to go to the build phase and mark the files in which you want to manage the memory yourself, which I have not done yet. It works as if I were.

It's strange that everything still works fine for me, just as if I was still working with Xcode 4, is that normal ?. From what I read, I have to get thousands of warnings, because I can no longer use release, save and auto search, but I'm not sure.

+4
source share
1 answer

Since ARC is a build option, I don't know how it should be enabled by default. It is always for a new project, but I think you are talking about existing ones. You can check if it is enabled under BuildSettings (check All ) Objective-C Automatic Reference Counting . Turn it on and you will get warnings :)

However, I would highly recommend using Edit->Refactor-> Convert to Objective-C ARC , as it is more reliable than porting the code as you like. You can select random files if you wish.

+2
source

All Articles