---
title: "iOS5及其以上版本不使用ARC机制的设置方法"
author: "jiapumin"
date: "2014-03-26T10:26:45Z"
tags: []
categories: ["移动开发"]
slug: "ios5-arc"
draft: false
lastmod: "2014-03-26T10:26:45Z"
id: 2036778
url: "https://jiapumin.iteye.com/blog/2036778"
---

**Xcode4.2开始使用ARC机制,****使得不使用ARC的Lib包导入十分不便,****如果手动删除掉retain, release, autorelease等工作量巨大, 经常需要手动修改几十条甚至上百条. 如果使用"-fno-objc-arc"设定,大大节省了时间和工作量.**

      **文件不使用ARC的设置方法:**

 

- TARGETS ➔ Build Phases ➔ Compile Sources ➔ 点击Compiler Flags ➔ 设置为

[**![\[iOS开发\]iOS5及其以上版本不使用ARC机制的设置方法](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif "[iOS开发]iOS5及其以上版本不使用ARC机制的设置方法")**](http://photo.blog.sina.com.cn/showpic.html#blogid=9bf8abf301018kro&url=http://s8.sinaimg.cn/orignal/9bf8abf3gcd94214e75e7)

```
-fno-objc-arc
```