Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode what's the difference between "Other Linker Flags" vs "Other_LDFLAGS"

Tags:

xcode

ios

ios6

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:

enter image description here

and what I have:

enter image description here

like image 247
ICL1901 Avatar asked Oct 23 '12 00:10

ICL1901


People also ask

What is Other_ldflags?

"Other Linker Flags" is the human-readable version, and OTHER_LDFLAGS is the actual variable name that the linker uses.

What does ObjC linker flag do?

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.

Where are Xcode build settings?

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.


1 Answers

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.

like image 57
user1118321 Avatar answered Sep 28 '22 05:09

user1118321