Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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,...".

like image 853
Yannick Avatar asked Dec 01 '11 15:12

Yannick


1 Answers

To add on to shw's answer. Add -fobjc-arc to compiler flags under build phases to ARC files to make them compile correctly for non-ARC projects.

More info here

like image 125
wL_ Avatar answered Oct 15 '22 14:10

wL_