ARC 和 ASIHTTPRequest [英] ARC and ASIHTTPRequest
问题描述
我有一个奇怪的问题.
我在启用 ARC 的 iOS 5 项目中使用 ASIHTTPRequest
.由于 ASIHTTPRequest
不支持 ARC,我在所有单独的 ASIHTTPRequest
文件上禁用了 ARC.
I use ASIHTTPRequest
in a iOS 5 project with ARC enabled. Since ASIHTTPRequest
does not support ARC I have disabled ARC on all individual ASIHTTPRequest
files.
但是,当我尝试编译我的项目时,xcode 仍然认为这些文件启用了 ARC 并且它会抱怨.
However, when I'm trying to compile my project, xcode still believes that those files are ARC-enabled and it complains.
我做错了什么还是xcode中的一个错误?不要告诉我使用重构工具将 ASIHTTPRequest
转换为兼容 ARC 的代码.我曾尝试这样做,但 xcode 抱怨项目中启用了 ARC (?!?!).
Did I do anything wrong or is that a bug in xcode? Don't tell me to convert ASIHTTPRequest
to ARC-compatible code with the refactor tool. I have tried to do that and xcode complains on that ARC is enabled on the project (?!?!).
推荐答案
您输入了 -fno-ojbc-arc
.正确的标志是 -fno-objc-arc
.
You typed -fno-ojbc-arc
. The correct flag is -fno-objc-arc
.
这篇关于ARC 和 ASIHTTPRequest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!