Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I include "-ObjC and -all_load" in Other Linker Flag to all my iOS projects? [duplicate]

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?

like image 407
Howard Avatar asked Nov 18 '11 08:11

Howard


1 Answers

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.

like image 197
Mathieu Hausherr Avatar answered Sep 30 '22 02:09

Mathieu Hausherr