What does the -ObjC linker flag do? What does the -ObjC linker flag do? objective-c objective-c

What does the -ObjC linker flag do?


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