---
title: "How to know whether a project uses ARC"
author: "简单的茶"
date: "2013-12-17T11:17:06Z"
tags: []
categories: ["移动开发"]
slug: "how-to-know-whether-a-project-uses-arc"
draft: false
lastmod: "2013-12-17T11:17:06Z"
id: 1990751
url: "https://lisai.iteye.com/blog/1990751"
---

There are 2 method to check whether a project is using ARC.
1. Select the project, open Build Settings. Look for Objective-C Automatic Reference Counting in the Apple LLVM Compile - Language section.

2. Try sth like this in code:
      init] ]autorelease];

   If U get an error :ARC forbids explicit message send of 'autorelease'
   then, U R using ARC.