iosobjective-csvgkit

import non-ARC code compiled .a file in ARC enabled project


There is a SVGKit on github is compiled in non-arc code, and I get its library file, named SVGKit.a and some header files.

However, my app project is developed on iOS 7 and above, so by default it is managed by ARC.

My question is, is it safe to link the non-ARC library .a file into my project and use it like usual? If not, then how can I use it?


Solution

  • is it safe

    From an ARC point of view, certainly. ARC operates at compiler level - and your library is already compiled. One way or another, it is already doing whatever memory management it is doing.

    Now, there may be other reason why you'd have trouble linking to a library; but that would have nothing to do with ARC.