Compiler flags for mixing ARC and non-ARC code are ignored

I think it is simple, but I can not understand:

I have three files in my project that are not compatible with ARC with the -fno-obj-arc linker flag set during the build steps.

However, the flags are ignored, as far as I can tell. The compiler still complains about sending save and free objects.

I am using Xcode 4.2 with ARC support for a project. Classes from MGSplitView.

Any ideas?

thanks for the help

+6
source share
1 answer

Your compiler flag is -fno-obj-arc . In objc missing c .

This is -fno-objc-arc .

Hope this helps you.

+19
source

Source: https://habr.com/ru/post/909471/


All Articles