-fno-objc-arc无法禁用ARC [英] -fno-objc-arc not working to disable ARC

查看:115
本文介绍了-fno-objc-arc无法禁用ARC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已尝试本文中找到的解决方案以禁用AFNetworking文件中的ARC,但无济于事:

我在哪里失败的任何想法?显然,答案越简单越好.我还读过创建静态库可能会有所帮助,但这似乎很复杂.

编辑

我尝试删除派生数据清理并构建重新启动Xcode.没有交易:(.

此外,我的工作区中没有其他项目.

解决方案

奇怪的事情.我尝试将-fno-objc-arc标志添加到一些Facebook文件中,并最终构建了该项目.我想这里的教训是,当Xcode生成这些类型的错误时,问题的根源可能在另一个文件中.如果Xcode抱怨您已标记的文件,则尤其如此!

希望这会对某人有所帮助:).

I have tried the solution found in this post to disable ARC in AFNetworking files, but to no avail:

Any ideas where I am failing? Obviously the simpler the answer the better. I have also read that creating static libraries may help, but this seems complicated.

EDITS

I have tried deleting derived data and Clean and Build and restarting Xcode. No deals :(.

Also, there are no other projects in my workspace.

解决方案

Weird thing. I tried adding the -fno-objc-arc flag to some Facebook files and the project finally built. I guess the lesson here is that when Xcode generates these types of errors, the source of the problem may be in another file. This may especially be true if Xcode is complaining about a file that you have already flagged!

Hopefully this will be of help to somebody :).

这篇关于-fno-objc-arc无法禁用ARC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆