如何在X中开启code编译时机? [英] How to enable build timing in Xcode?

查看:206
本文介绍了如何在X中开启code编译时机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我的项目多长时间需要建立,例如通过在构建窗格中显示它。
这是选项X code语言中的某个地方?

I'd like to know how long my project's builds take, for example by displaying it in the build pane. Is this option available somewhere in Xcode?

感谢。

推荐答案

在终端输入:

defaults write com.apple.Xcode ShowBuildOperationDuration YES

X code可需要关闭输入此命令之前。持续时间应该出现在左侧项目窗口的底部。

Xcode may need to be closed before you enter this command. Durations should appear at the bottom left of the project window.

从X code开发者评论:正如所有无证用户默认设置,这是不支持的,认为(但不能保证)准确,不放心的是有效的在未来的版本。

Comment from an Xcode developer: "As with all undocumented user defaults, this is unsupported, assumed (but not guaranteed) accurate, and not assured to be effective in future versions."

编辑:新版本X $ C $的C有不同的plist中的名称,而是使用:

Newer versions of XCode have a different plist name, instead use:

defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES

时间出现在活动观众构建后,旁边的成功的消息。

Duration appears in the activity viewer after a build, alongside the "Succeeded" message.

如果您运行的应用程序,状态会由运行状态更换前就可以看到时间。

If you are running the app, the status will be replaced by the running status before you can see the duration.

这篇关于如何在X中开启code编译时机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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