Xcode - 如何查看构建命令和日志?

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

Xcode - how to see build command and log?

xcodeloggingbuildxcode6output

提问by starlocke

I have build errors in my Xcode project (Objective-C), and I no longer "stumble upon" the build command string nor the build output logs. This is Xcode 6.3.1.

我的 Xcode 项目 (Objective-C) 中存在构建错误,并且我不再“偶然发现”构建命令字符串和构建输出日志。这是 Xcode 6.3.1。

All I can inspect is a left-side panel listing errors/warnings.

我所能检查的只是一个列出错误/警告的左侧面板。

I want the build command and build console output to compare between two projects; there's a platform-specific issue present in one but not the other; my intuition says that the build settings are different between the two and that seeing the output would be the easiest way to identify the diff.

我希望构建命令和构建控制台输出在两个项目之间进行比较;其中一个存在特定于平台的问题,而另一个则没有;我的直觉是两者的构建设置不同,查看输出是识别差异的最简单方法。

How do I get to see the build command string, and, the build output logs in this xcode?

如何在此 xcode 中查看构建命令字符串以及构建输出日志?

回答by Mark Szymczyk

Use the Report Navigator. On the left side of the project window, you should see a series of small buttons at the top. Click the rightmost button to switch to the Report Navigator. Or you can choose View > Navigators > Show Report Navigator.

使用报告导航器。在项目窗口的左侧,您应该会在顶部看到一系列小按钮。单击最右边的按钮切换到报告导航器。或者,您可以选择“查看”>“导航器”>“显示报告导航器”。

The Report Navigator shows a list of recent builds. Select one to see the details of the build in the center of the project window. To see more detailed information on a specific step in the build, select it. You will see a small button on the right with a series of horizontal lines.

报告导航器显示最近构建的列表。选择一个以在项目窗口的中心查看构建的详细信息。要查看有关构建中特定步骤的更多详细信息,请选择它。您将在右侧看到一个带有一系列水平线的小按钮。

enter image description here

在此处输入图片说明

Click that button to see the log for that build step.

单击该按钮可查看该构建步骤的日志。

enter image description here

在此处输入图片说明

Note for Commenters

评论者注意事项

I see comments on this answer that the answer is insufficient to see the build commands. If this answer is insufficient, ask a new question. State clearly what you are trying to see. Reference this question and answer in your question and explain why the answer does not solve your issue. This answer is the only way I know to see the low-level commands Xcode uses to build your projects.

我看到对此答案的评论认为答案不足以查看构建命令。如果这个答案不够,请提出一个新问题。清楚地说明你想看到什么。在您的问题中引用此问题和答案,并解释为什么该答案不能解决您的问题。这个答案是我所知道的查看 Xcode 用于构建项目的低级命令的唯一方法。