objective c - Available linker flags and it's use in iOS -


i'm little bit confused linker flags available on ios.

this question may not 1 accoring faq, don't know linker flags, , i'm curious it. that's why i'm asking here.

  1. what use of -objc linker flag ?
  2. what use of -all_load ?
  3. what use of -force_load ?

what other used linker flags available ios ?

please me understand linker flag usage. in advance.

  • -objc flag causes linker load every object file in library defines objective-c class or category. while option typically result in larger executable (due additional object code loaded application), allow successful creation of effective objective-c static libraries contain categories on existing classes.
  • -all_load flag forces linker load object files every archive sees, without objective-c code.
  • -force_load option must followed path archive, , every object file in archive loaded.

for additional information can read document

edit

you can see flags supported ld in ld manpage in following document


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -