How do I convert my Xcode project to use ARC (Automatic Reference Counting)?

℡╲_俬逩灬. 提交于 2019-12-07 03:13:29

问题


When I run Convert to Obj-C it firsts runs a Precheck. Some files I want the Precheck to ignore, and I thought I could set the compiler flag -fno-objc-arc on those files. But Precheck phase seems to ignore that flag (and reset it)...so I don't really know how to get beyond Precheck.


回答1:


The first step of the pre-check has a list of all your files with checkboxes before them, just unstick the ones you do not want to convert to ARC, the migration tool will take care of setting the correct compiler flags during the conversion.



来源:https://stackoverflow.com/questions/7780412/how-do-i-convert-my-xcode-project-to-use-arc-automatic-reference-counting

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