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

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

问题描述

我想在Xcode 5中添加一个新的构建配置QA,我们目前有三个(Debug,Distribution,Release)。但是,当我单击编辑器>添加配置,一切都显示为灰色。我不太熟悉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天全站免登陆