How to add ARC for specific file?

前端 未结 2 1225
逝去的感伤
逝去的感伤 2020-12-14 00:58

I created a project without ARC. I want to use a third party SDK in my project. That SDK comes with ARC Support. So I

相关标签:
2条回答
  • 2020-12-14 01:37

    Add the flag -fobjc-arc to the files that you'd like to use ARC. It's just the opposite of the other.

    0 讨论(0)
  • 2020-12-14 01:44

    You add compiler flags in Targets -> Build Phases -> Compile Sources

    Compile source show all file that project contain.so please add -fobjc-arc to compiler flag by double clicking on it as show in below image.

    enter image description here

    0 讨论(0)
提交回复
热议问题