开发者

What does the -ObjC linker flag do?

开发者 https://www.devze.com 2023-03-18 04:06 出处:网络
I have an app that works with and without the linker flag.However, without the linker flag, I get a very different 开发者_StackOverflow中文版behaviour when adding data to a view.

I have an app that works with and without the linker flag. However, without the linker flag, I get a very different 开发者_StackOverflow中文版behaviour when adding data to a view.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消