iosautomatic-ref-countingworkspace

Using an ARC static library in a NON-ARC project


I am trying to get this sorted out. I know how to get an ARC project working with files or static lib's that are not using ARC. For instance, using the compiler flags -fno-objc-arc.

But what if I have a project that is not using ARC and want to include a static library compiled with ARC? Every time I want to build the project it is telling me that it doesn't recognize things like "strong, __unsafe_unretained,...".


Solution

  • It should work fine - are you sure you're using the newest Apple compiler with this non-ARC project and not the GCC one?