Pregunta

I using Xcode 5.0 and i want to use jsonKit to parser content, but i can't find where to place :

-fno-arc-objc

It will display :

if __has_feature(objc_arc) error JSONKit does not support Objective-C Automatic Reference Counting (ARC) endif

Well, I did add the JSONKit classes (JSONKit.h & JSONKit.h) but in the .m file, I have a lot of warnings & compil's error's. I using refactor to convert to objective-c arc but it seem not OK..

¿Fue útil?

Solución

If you want to add the flag to the compiler options you have to go through Project->Build Phases->Compile Sources, and double click on each of the files where you want to put the flag :

enter image description here Beware that there is a strange glitch depending on where the settings window is loaded :

Unable to add compiler flag in Xcode 5

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top