How to enable/disable ARC in an xcode project?

后端 未结 4 721
囚心锁ツ
囚心锁ツ 2020-12-04 11:05

If a project has already been created with ARC disabled, how do I enable it and vice versa?

4条回答
  •  庸人自扰
    2020-12-04 11:36

    Open your project and select Edit -> Refactor -> Convert to Objective-C ARC. This will start checking your code if it is ready for the conversion.

    Good link to read: Everything you need to know about automatic reference counting (ARC)

    How to disable ARC has been answered here

提交回复
热议问题