xcode project-/target-settings-syntax for linker flag force_load on iPhone

前端 未结 2 902
野性不改
野性不改 2020-12-14 07:43

I am confronted with the double bind. On the one hand, for one of the 3rd party static libraries my iPhone application uses, the linker flag -all_load has to be

2条回答
  •  -上瘾入骨i
    2020-12-14 08:08

    I just added force_load to our project and all is fine using the simplest syntax possible. The library is a dependency built in the same project. The library is therefore included on the link command-line twice: once as a normal input file and once as an argument to -force_load. You might want to put quote characters around the argument.

    In fact, I've even got this working using configuration-dependent settings (because the path is obviously different for debug vs. release and device vs. simulator).

    Good luck.

提交回复
热议问题