8

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

I see most static library require you to do it, so I add them in all of my projects, seems no side effect in adding this?

Community
  • 1
  • 1
Howard
  • 19,215
  • 35
  • 112
  • 184

2 Answers2

17

There is a side effect: build phase take much time.

-ObjC allow the static library to use objective-c specific stuffs like kvc or categories.

-all_load solve a bug in gcc/llvm, where -ObjC is not correctly used.

Mathieu Hausherr
  • 3,485
  • 23
  • 30
10

Read about why to use these flags in SO questions:

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

And then think about if you need to use them or not

Community
  • 1
  • 1
Marek Sebera
  • 39,650
  • 37
  • 158
  • 244