Should I include "-ObjC and -all_load" in another Linker flag in all my iOS projects?

Possible duplicate:
What does the linker flag -all_load do?

I see that most static libraries require you to do this, so I add them to all my projects, it seems not a side effect when adding this?

+8
ios objective-c iphone xcode
source share
2 answers

Learn why to use these flags in SO questions:

What does the linker flag -all_load do?
Objective-C categories in a static library

And then think about whether to use them or not.

+10
source share

There is a side effect: the assembly phase takes a long time.

-ObjC allows the static library to use objective-c specific things, such as kvc or categories.

-all_load resolves the error in gcc / llvm, where -ObjC is misused.

+17
source share

All Articles