0

How can I use the box-api in a project using ARC? I copied the SDK folder to my project and added them, but I can't build my project since it uses ARC.

seanrose
  • 8,185
  • 3
  • 20
  • 21
sverin
  • 179
  • 2
  • 13
  • Can you share a little more detail? Which SDK are you referring to? Can you also disambiguate ARC? What do you mean by "uses ARC." Is that a library? – Peter Sep 10 '12 at 00:31
  • I'm using the box-api (https://github.com/box/box-ios-sdk), copied the SDKFiles folder as readme said. ARC (Automatic Reference Counting) removes the need of manual memory management. – sverin Sep 10 '12 at 06:51

1 Answers1

0

You have to disable ARC for these files:

  1. Go to Your Project > Your Target > Build Phases
  2. Select all Box files, press Enter and insert "-fno-objc-arc" without quotas
  3. Clean and Build! ;)

enter image description here

Francesco Vadicamo
  • 5,522
  • 35
  • 29