问题描述
我想在X code 5增加新的生成配置,质量保证,以我们目前有其他三个(调试,分配,释放)。然而,当我点击编辑>添加配置,一切都将被禁用。我不是很熟悉,摆在首位X code,所以我不知道如何去这样做。
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
这篇关于添加在X code进行构建配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!