Christoph
Christoph

Reputation: 2073

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

Upvotes: 6

Views: 4524

Answers (1)

Alexsander Akers
Alexsander Akers

Reputation: 16024

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

It's -fno-objc-arc.

Hope this helps you.

Upvotes: 19

Related Questions