How to enable ARC for a single file

后端 未结 2 424
半阙折子戏
半阙折子戏 2020-11-30 02:45

I want to bring a single Objective-C class written using ARC into an old project. The internet provides many references for how to enable ARC for your project and then disab

2条回答
  •  清歌不尽
    2020-11-30 03:33

    Select Target > Build Phases > Compile Source > Select Your class > Double Click> Type

    -fobjc-arc in dialog box

    Enter.

提交回复
热议问题