Reputation:
I have old project that uses manual memory management. My new projects are using ARC. How can I convert my old project to use ARC as well?
Upvotes: 0
Views: 165
Reputation: 8548
Yes, you are on the right track: Your new project uses ARC (automatic reference counting). There is a lot of information available on Stackoverflow and other sites on how you can migrate to ARC.
However, you can also tell Xcode to not use ARC for individual files. Just add the -fno-objc-arc
flag in Build Phases - Compile Sources. (There, you can add a flag to a file by double-clicking the file.)
Upvotes: 2