Tool for transitioning to ARC

2019-06-20 03:43发布

问题:

I want to transition my App to ARC. I can change Objective-C Automatic Reference Counting to YES but that does not automatically remove releases retains etc.

The Transitioning to ARC Release Notes states:

Xcode has a new tool that automates the mechanical parts of the ARC conversion (such as removing retain and release calls) and helps you to fix issues the migrator can’t handle automatically. The migration tool converts all files in a project to use ARC. You can also choose to use ARC on a per-file basis if it’s more convenient for you to use manual reference counting for some files.

How do I invoke this tool in Xcode?

回答1:

Oh man I just found it:

Convert > To Objective-C ARC

I checked in Xcode's help first where I could not find it.