Convert non-ARC to ARC project without recreate it

2019-02-04 07:44发布

问题:

I'm just wondering if it's possible to convert a non-ARC project to ARC without recreate it at all ? Thank you

回答1:

With Xcode 7 you use the Edit | Convert | Convert to Objective-C ARC menu.


Pre-Xcode 7:

In Xcode, use the Edit | Refactor | Convert to Objective-C ARC menu. No need to recreate the project.