Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I convert my Xcode project to use ARC (Automatic Reference Counting)?

When I run Convert to Obj-C it firsts runs a Precheck. Some files I want the Precheck to ignore, and I thought I could set the compiler flag -fno-objc-arc on those files. But Precheck phase seems to ignore that flag (and reset it)...so I don't really know how to get beyond Precheck.

like image 711
pbx Avatar asked Oct 15 '11 20:10

pbx


1 Answers

The first step of the pre-check has a list of all your files with checkboxes before them, just unstick the ones you do not want to convert to ARC, the migration tool will take care of setting the correct compiler flags during the conversion.

like image 128
hypercrypt Avatar answered Oct 23 '22 03:10

hypercrypt