1

I am trying to use a set of C libraries to allow custom graphs in my iOS project. My projects uses ARC, however, the custom graph libraries are based on a project that does not use ARC. The errors I am getting are related to ARC.

The documentation for the C libraries specify that when using the library to turn off ARC. However, my project is too evolved to revert to a non ARC project.

How might I still use this library in my project? The library is PowerPlot.

Dietrich Epp
  • 194,726
  • 35
  • 326
  • 406

1 Answers1

3

You can turn off ARC for the specific library, by adding the -fno-objc-arc compiler flag.

Go in your Target Settings > Build Phases > Compile Sources, and add the compiler flag to every implementation file from the library.

Further information can be found here: How can I disable ARC for a single file in a project?

Community
  • 1
  • 1
Gabriele Petronella
  • 104,800
  • 21
  • 210
  • 229