How to convert an Xcode project to ARC (automatic reference counting)?

When I launch Convert to Obj-C, it launches Precheck. In some files, I want Precheck to ignore, and I thought I could set the compiler flag -fno-objc-arc in these files. But the Precheck phase seems to ignore this flag (and reset it) ... so I really don't know how to go beyond Precheck.

+6
source share
1 answer

At the first stage of the preliminary check, there is a list of all your files with flags in front of them, just unscrew 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.

+6
source

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


All Articles