I have an app that crashes on build.
I'm told to set the "Other Linker Flags" to -ObjC. Fine.. but
in Xcode's Build settings, I don't see "Other Linker Flags", I see "Other_LDFLAGS".
So, what is the difference, and how do I change from one to the other if necessary?
A picture is worth.... so.. what I'm told I need:
and what I have:
"Other Linker Flags" is the human-readable version, and OTHER_LDFLAGS is the actual variable name that the linker uses.
The -ObjC Linker Flag Passing the -ObjC option to the linker causes it to load all members of static libraries that implement any Objective-C class or category. This will pickup any category method implementations. But it can make the resulting executable larger, and may pickup unnecessary objects.
Choose the project in the Project Navigator on the left. Select the Configurations target from the Targets section and click the Build Settings tab at the top. The Build Settings tab shows the build settings for the Configurations target. It's possible to expand this list with build settings that you define.
These are the same thing. One is a synonym for the other. If you click on the Quick Help in the inspector in Xcode 4.5 when you have "Other Linker Flags" selected, it will tell you that it sets the "OTHER_LDFLAGS" setting. "Other Linker Flags" is the human-readable version, and OTHER_LDFLAGS
is the actual variable name that the linker uses.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With