iphone - -ObjC链接器标志有什么作用?

original title: "iphone - What does the -ObjC linker flag do?"


Translate

I have an app that works with and without the linker flag. However, without the linker flag, I get a very different behaviour when adding data to a view.



我有一个带有或不带有链接器标志的应用程序。但是,没有链接器标志,将数据添加到视图时会出现非常不同的行为。

这是翻译后的摘要,如果您需要查看完整的翻译,请单击“Translate”图标


所有的回答
  • Translate

    This flag causes the linker to load every object file in the library that defines an Objective-C class or category. While this option will typically result in a larger executable (due to additional object code loaded into the application), it will allow the successful creation of effective Objective-C static libraries that contain categories on existing classes.

    From this Technical Q&A