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

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

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

我希望 build 命令和 build 控制台输出能够在两个项目之间进行比较; 在一个项目中存在一个特定于平台的问题,但在另一个项目中没有; 我的直觉告诉我,两个项目之间的 build 设置是不同的,看到输出将是识别差异的最简单方法。

如何查看这个 xcode 中的构建命令字符串和构建输出日志?

79291 次浏览

Use the Xcode report navigator.

To show the report navigator, either (1) click the rightmost button in the navigator bar at the top of the navigator area, which is on the left side of the workspace window, (2) select View > Navigators > Reports from the menu bar at the top of the screen, or (3) press 9.

The report navigator shows a list of recent builds. Select one to see the details of the build in the editor area, which is in the center of the workspace window.

At the top of the editor area, make sure "All" and "All Messages" are both selected. Then click the "Export…" button at the top-right of the editor area to export a text file containing all the messages and build commands.

If you just want to see the messages and build commands for a specific build step, then select that step and click the small button on the right with a series of horizontal lines.

Xcode show build commands

The picture below is from the original answer.

Xcode show build commands