ARC和ASIHTTPRequest [英] ARC and ASIHTTPRequest

查看:87
本文介绍了ARC和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屋!

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