Xcode-如何查看构建命令和日志? [英] Xcode - how to see build command and log?

查看:1482
本文介绍了Xcode-如何查看构建命令和日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Xcode项目(Objective-C)中存在构建错误,并且不再迷失"构建命令字符串或构建输出日志.这是Xcode 6.3.1.

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.

我能看到的是一个左侧面板,列出了错误/警告.

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

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

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.

如何查看构建命令字符串,并且构建输出记录在此xcode中?

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

推荐答案

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

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.

单击该按钮以查看该构建步骤的日志.

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

评论者注意

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

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-如何查看构建命令和日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆