How can I disable ARC for a single file in a project?

前端 未结 18 3286
星月不相逢
星月不相逢 2020-11-21 04:31

I am using ARC successfully in my project. However, I have encountered a few files (e.g., in unit tests and mock objects) where the rules of ARC are a little more fragile ri

18条回答
  •  佛祖请我去吃肉
    2020-11-21 05:14

    Following Step to to enable disable ARC

    Select Xcode project Go to targets Select the Build phases section Inside the build phases section select the compile sources. Select the file which you do not want to disable ARC and add -fno-objc-arc

提交回复
热议问题