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

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

问题描述

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

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

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

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

解决方案

使用 Xcode 报告导航器.

要显示报告导航器,请 (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.

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?

解决方案

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.

The picture below is from the original answer.

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

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