且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Xcode 中添加构建配置

更新时间:2023-01-02 21:25:13

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

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