How to enable/disable ARC in an xcode project?

后端 未结 4 730
囚心锁ツ
囚心锁ツ 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:28

    Following are the steps which I did and it worked for me

    1. Select Project
    2. Select Targets
    3. From the right panel, select Build Settings
    4. Search for "Automatic Reference Counting";
    5. Locate Apple LLVM compiler 3.0 - Language and Objective-C Automatic Reference Counting and select NO in all three sections.

    enter image description here

提交回复
热议问题