Converted my application to ARC, but only 1 goal shows setting ARC as YES?

I believe that I successfully converted the application to ARC using the Refactor -> Convert to Objective-C ARC tool, but only one of my project goals has the setting:

enter image description here

And if I create something using IB, does it still generate the save / release / dealloc code?

Also, I now have crashes that I did not do before due to memory usage, so I wonder if my project is in a state with half the conversions, which causes me random memory problems.

How can I use these other goals to use ARC - or make sure they use ARC?

+6
source share
1 answer

Manually change the flags to say YES. You also want to check and make sure that none of the files has the compiler flag "-fno-objc-arc". (I came across projects that were half converted in this way.)

If you still have memory problems, run the Leaks tool. Even with ARC, you can still have memory leaks, such as storing loops , where relationships between parents and children keep each other. In this case, you need to use weak pointers.

+4
source

Source: https://habr.com/ru/post/923881/


All Articles