简体   繁体   中英

Tool for transitioning to ARC

I want to transition my App to ARC . I can change Objective-C Automatic Reference Counting to YES but that does not automatically remove release s retain s 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?

Oh man I just found it:

Convert > To Objective-C ARC

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

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM