如何从XCode删除ARC [英] How to remove ARC from XCode

查看:63
本文介绍了如何从XCode删除ARC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在XCode 4.2中创建了一个已检查ARC的项目.问题是我必须下载并添加ASIHttpRequest文件.当我尝试编译时,这会带来很多错误.有什么方法可以解决此问题(除了重新创建项目之外)?

I have already created a project in XCode 4.2 with ARC checked. The problem is that I have to download and add the ASIHttpRequest files. This is giving a whole bunch of errors when I try to compile. Is there some way to fix this (other than to create a project again) ?

推荐答案

在左侧导航视图中单击项目的名称,转到目标"->构建阶段"并添加 -fno-objc- 指向所有相关文件的编译器标志".

Click on the name of the project on the navigation view in the left side, go to Targets -> Build Phases and add -fno-objc-arc to the "compiler flags" for any relevant files.

这篇关于如何从XCode删除ARC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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