In what way -all_load
is different from -ObjC
. In my project both behave in same way.
General Usage Rules In America, Canada, Australia and New Zealand, the general rule is that double quotes are used to denote direct speech. Single quotes are used to enclose a quote within a quote, a quote within a headline, or a title within a quote.
Double quotation marks (in British English) are used to indicate direct speech within direct speech (use single inverted commas for direct speech and double quotation marks to enclose quoted material within).
They are two entirely different punctuation symbols. Single quotes are limited to one real function in written U.S. English, which is to indicate a quotation within a quotation. Apostrophes, on the other hand, are used to denote possessive form and to indicate omission.
Inverted commas are mainly used to introduce quotations or direct speech. This is why the name quotation mark is used as a synonym for inverted commas. A direct quote (the exact words spoken or written) must be always written inside quotation marks.
-Objc
This flag causes the linker to load every object file in the library that defines an Objective-C class or category.
-all_load
For 64-bit and iPhone OS applications, there is a linker bug that prevents -ObjC from loading objects files from static libraries that contain only categories and no classes. The workaround is to use the -all_load
or -force_load
flags. -all_load
forces the linker to load all object files from every archive it sees, even those without Objective-C code
Reference Building Objective-C static libraries with categories
From man ld
...
-all_load Loads all members of static archive libraries.
-ObjC Loads all members of static archive libraries that implement an Objective-C
class or category.
-ObjC won't draw in all symbols from all static libraries like -all_load will.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With