ios5 ARC what is the compiler flag to exclude a file from ARC?

三世轮回 提交于 2019-11-27 07:02:54

I found the answer: to exclude the file from ARC, use the -fno-objc-arc flag in build phases>compile sources

the moral of this story is: once your project is in ARC and you have some files marked as no ARC, do not re-run the convert to ARC tool from Refactor>Convert to ARC. It will not restore your settings even if pre-check fails.

You can restore your settings for excluded files by removing references on them and then readd to project back

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