Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiler Flags for Mixing ARC and Non-ARC Code are ignored

I am guess this is a simple one but I can't figure it out:

I got three files in my project that are not ARC compatible with the linker flag -fno-obj-arc set in Build Phases.

However the flags are ignored as far as I can tell. The compiler still complains about sending retain and release to objects.

I am using Xcode 4.2 with ARC enabled for the project. The classes are from MGSplitView.

Any ideas?

Thanks for your help

like image 685
Christoph Avatar asked Feb 27 '12 17:02

Christoph


1 Answers

Your compiler flag is -fno-obj-arc. It is missing a c in objc.

It's -fno-objc-arc.

Hope this helps you.

like image 155
Alexsander Akers Avatar answered Oct 07 '22 01:10

Alexsander Akers