Use Automatic Referencing Count in specific classes in ios

倖福魔咒の 提交于 2019-12-01 14:37:30

the image below will show you how to do it.

-fno-objc-arc   flag to disbale arc 

-fobjc-arc      flag to enable arc

Go to your project settings, under Build Phases > Compile Sources Select the files you want ARC disabled and add -fno-objc-arc compiler flags. You can set flags for multiple files in one shot by selecting the files then hit Enter key.

Go to Issue Navigator -> Validate project settings -> Perform changes. In this way Xcode automatically remove release and retain keywords from whole project and convert into ARC compatible.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!