问题描述
以下有关禁用ARC的编译器机制,为特定的一类计算器的话题,我添加了 -fno-objc弧
参数下编译编译源部分标志列(BUIL阶段预期项目内标签)。即使设置已被验证,我不能够建立我的应用程序,因为编译器说,保留,发布等。
不能ARC下使用。
Following a stackoverflow topic about disabling ARC compiler mechanism for specific classes, I added the -fno-objc-arc
argument to Compiler Flags column under Compile Sources section (Buil Phases tab within TARGETS project). Even if settings have been validated, I'm not able to build my application since the compiler says that retain, release, etc.
cannot be used under ARC.
如何解决上述问题?谢谢你在前进。
How can I fix the above problem? Thank you in advance.
推荐答案
你使用迁移工具来执行迁移?你的编译器标志添加到的所有的有释放文件/保存?
Did you use the migration tool to perform your migration? Did you add the compiler flags to all the files that has release/retain?
我写了一篇关于 ARC迁移在我的博客一>在这里。
I wrote about ARC migration on my blog here.
这篇关于ARC:设置编译器标志-fno-objc弧和构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!