Xcode 和生成调试符号

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1627000/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 18:55:24  来源:igfitidea点击:

Xcode and Generate Debug Symbols

iphoneobjective-cxcode

提问by Alexi Groove

Which setting in Project Settings page needs to be set in order for Xcode to generate debug symbols for a project?

需要设置项目设置页面中的哪个设置才能让 Xcode 为项目生成调试符号?

If I set 'Generate Profiling Code" to checked, as soon as I try to build, I get the error,

如果我将“生成分析代码”设置为选中,一旦我尝试构建,我就会收到错误消息,

cc1obj: error: unrecognised debug output level "-full"

cc1obj:错误:无法识别的调试输出级别“-full”

If not, the other way to do this I thought was by setting the 'OTHER_CFLAGS' value to '-g' but it also yields the same error.

如果没有,我认为另一种方法是将“OTHER_CFLAGS”值设置为“-g”,但也会产生相同的错误。

回答by dreamlax

Under your compiler's settings group ("i.e. GCC 4.2 - Code Generation") there's a setting called "Generate Debug Symbols".

在编译器的设置组(“即 GCC 4.2 - 代码生成”)下,有一个名为“生成调试符号”的设置。

You can get an overview of probably all debug-related settings just by typing "debug" in the search box.

只需在搜索框中键入“debug”,您就可以大致了解所有与调试相关的设置。