ios Xcode“Other Linker Flags”与“Other_LDFLAGS”有什么区别
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13022084/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode what's the difference between "Other Linker Flags" vs "Other_LDFLAGS"
提问by David DelMonte
I have an app that crashes on build.
我有一个在构建时崩溃的应用程序。
I'm told to set the "Other Linker Flags" to -ObjC. Fine.. but
我被告知将“其他链接器标志”设置为 -ObjC。很好..但是
in Xcode's Build settings, I don't see "Other Linker Flags", I see "Other_LDFLAGS".
在 Xcode 的 Build 设置中,我没有看到“Other Linker Flags”,我看到的是“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:
以及我所拥有的:
回答by user1118321
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.
这些是同一件事。一个是另一个的同义词。如果您在选择了“其他链接器标志”时单击 Xcode 4.5 中检查器中的快速帮助,它会告诉您它设置了“OTHER_LDFLAGS”设置。“其他链接器标志”是人类可读的版本,OTHER_LDFLAGS
是链接器使用的实际变量名称。