在 Xcode 中添加构建配置 [英] Adding a build configuration in Xcode

查看:31
本文介绍了在 Xcode 中添加构建配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Xcode 5 中添加一个新的构建配置QA"到我们目前拥有的其他三个配置(调试、分发、发布).但是,当我单击编辑器 > 添加配置"时,一切都变灰了.首先,我对 Xcode 不是很熟悉,所以我不确定如何去做.

I'd like to add a new build configuration in Xcode 5, "QA", to the other three we currently have (Debug, Distribution, Release). However, when I click "Editor > Add Configuration", everything is grayed out. I'm not very familiar with Xcode in the first place, so I'm not sure how to go about doing this.

它变灰有什么原因吗?这是添加构建配置的过程吗?谢谢.

Is there a reason it's grayed out? Is this this process to add a build configuration? Thanks.

推荐答案

我遇到了同样的问题并解决了.这是问题的屏幕截图.我想复制我的发布"配置,但这样做的选项被禁用.为什么?

I ran into this same problem and figured it out. Here is a screenshot of the problem. I want to duplicate my "Release" configuration, but the option to do so is disabled. Why?

答案就隐藏在这个小按钮后面(红色圈出)...

The answer is hiding behind this little button here (circled in red)...

此菜单将打开以显示您当前选择了一个构建目标.构建目标没有自己的配置.

This menu will open to reveal that you currently have a build target selected. Build targets don't have their own configurations.

配置是项目范围的.如果您选择项目文件,菜单将起作用,如下所示.

Configurations are project-wide. If you select the project file, the menu will work, as shown here.

您还必须确保选择了信息"选项卡,如果您在构建设置"页面上,这些选项仍然是灰色的

You also have to make sure that the 'Info' tab is selected, the options are still greyed out if you are on the 'Build Settings' page

这篇关于在 Xcode 中添加构建配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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