What does the -ObjC linker flag do?

IphoneObjective CIosCompiler Construction

Iphone Problem Overview


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.

Iphone Solutions


Solution 1 - Iphone

> 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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionbsarrazinView Question on Stackoverflow
Solution 1 - IphonesergioView Answer on Stackoverflow