Xcode“Other Linker Flags”与“Other_LDFLAGS”之间的区别是什么?

时间:2022-06-20 02:17:57

I have an app that crashes on build.

我有一个应用程序崩溃的构建。

I'm told to set the "Other Linker Flags" to -ObjC. Fine.. but

我被告知将“Other Linker Flags”设置为-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:

一张照片是值得的...所以..我告诉我需要的东西:

Xcode“Other Linker Flags”与“Other_LDFLAGS”之间的区别是什么?

and what I have:

而我拥有的东西:

Xcode“Other Linker Flags”与“Other_LDFLAGS”之间的区别是什么?

1 个解决方案

#1


23  

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.

这些是一回事。一个是另一个的同义词。如果在选择“其他链接器标志”时单击Xco​​de 4.5中检查器中的“快速帮助”,它将告诉您它设置了“OTHER_LDFLAGS”设置。 “其他链接器标志”是人类可读的版本,OTHER_LDFLAGS是链接器使用的实际变量名称。

#1


23  

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.

这些是一回事。一个是另一个的同义词。如果在选择“其他链接器标志”时单击Xco​​de 4.5中检查器中的“快速帮助”,它将告诉您它设置了“OTHER_LDFLAGS”设置。 “其他链接器标志”是人类可读的版本,OTHER_LDFLAGS是链接器使用的实际变量名称。