Featured Apps

MyMemes

Create Your Own Memes
Add captions to the most popular meme images or your own photos

Sleepify

Music Alarm Clock
Simple, stylist and intuitive music alarm clock

Collaged

Create Photo Collages
Easily create photo collages to share with friends and family

Disable Automatic Reference Counting (ARC) for individual files

17 October 2013

ARC was introduced to iOS with the release of iOS 5. This is a very useful feature and saves a lot of time when coding apps. However, much code that you find on the internet isn't written to support ARC and will cause huge lists of errors when you try to build your project.

Fortunately, solving this problem is very simple. You are able to turn off ARC for selected files in your project. This is achieved by adding -fno-objc-arc to the compiler flags for the file(s) that you don't want to use ARC with.

In Xcode, this can be found under Your Target > Build Phases > Compile Sources.