Tool for transitioning to ARC

2019-06-20 03:05发布

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条回答
一夜七次
2楼-- · 2019-06-20 03:34

Oh man I just found it:

Convert > To Objective-C ARC

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

enter image description here

查看更多
登录 后发表回答