I have 3 configurations in my project (Debug, Distribution_AdHoc and Distribution_AppStore). In Xcode 3 we had a list to choose device, version, configuration and target before build and run. Now with Xcode 4 we only have the device kind and version in this list. This bring my two questions:
我的项目中有3种配置(Debug、Distribution_AdHoc和Distribution_AppStore)。在Xcode 3中,我们有一个在构建和运行之前选择设备、版本、配置和目标的列表。现在有了Xcode 4,我们在这个列表中只有设备种类和版本。这就引出了我的两个问题:
-
So where is defined the configuration used ? Is that the configuration defined in "Project > Info > Command-line builds use: Debug" ?
那么使用的配置在哪里定义呢?这是在“>项目> Info >命令行构建使用:Debug”中定义的配置吗?
-
And now the "Project" menu is replaced by "Product" So where can we create (or duplicate and edit) a Configuration ?
现在“项目”菜单被“Product”取代,那么我们可以在哪里创建(或复制和编辑)一个配置呢?
Thank you.
谢谢你!
3 个解决方案
#1
32
Just in case you still want to make a Distribution config (or other config--I still find them useful), after great length (read: searched in the help for 'duplicate'), I found this:
如果你仍然想要做一个配置配置(或者其他配置——我仍然觉得它们很有用),在很长一段时间后(阅读:在“复制”的帮助中搜索),我发现了这个:
At first, they were all grayed out; this was because I had one of the targets highlighted in the editor (MFE, MFETests, etc.). If you highlight your project (as in the screenshot), they become enabled.
起初,他们都是灰色的;这是因为我在编辑器中突出显示了一个目标(MFE、MFETests等)。如果突出显示您的项目(如屏幕截图中所示),它们将被启用。
#2
17
You can use alt(option) and click on either, run, test or profile to see the option. Here you can set the target for each option.
您可以使用alt(选项),然后单击,运行,测试或配置文件来查看选项。在这里,您可以为每个选项设置目标。
For Archive the release is normally used, since can you resign your app via the organizer there is no need ad-hoc and appstore target any more.
对于存档,通常使用发布版本,因为你可以通过组织者退出你的应用,不再需要特别和appstore目标。
#3
2
For part 1 of your question,
对于你问题的第一部分,
The configuration is set in the schema window. apple+shift+comma to get to the window. Or Product > Scheme > Manage Schemes from the menu bar.
配置在模式窗口中设置。苹果+shift+逗号进入窗口。或产品>方案>管理方案从菜单栏。
In the window, click the type of build you want on the left panel: Build, Run, Profile, Analyze, or Archive. In the window tab usually, along the type, there is an option Build Configuration that can be set. Select Debug, Release, or whichever configuration you want there.
在窗口中,单击左侧面板上所需的构建类型:构建、运行、概要文件、分析或归档。在window选项卡中,通常会有一个可以设置的选项构建配置。
The exception if the build task. The build task uses whatever configuration is set for the Run task. Also, the analyze and archive tasks only have one tab, so using the info tab is not necessity.
构建任务时的异常。构建任务使用为运行任务设置的任何配置。而且,分析和归档任务只有一个选项卡,所以使用info选项卡不是必须的。
Apparently, "build" is shorthand for "build for run"...
显然,“构建”是“运行构建”的简写……
#1
32
Just in case you still want to make a Distribution config (or other config--I still find them useful), after great length (read: searched in the help for 'duplicate'), I found this:
如果你仍然想要做一个配置配置(或者其他配置——我仍然觉得它们很有用),在很长一段时间后(阅读:在“复制”的帮助中搜索),我发现了这个:
At first, they were all grayed out; this was because I had one of the targets highlighted in the editor (MFE, MFETests, etc.). If you highlight your project (as in the screenshot), they become enabled.
起初,他们都是灰色的;这是因为我在编辑器中突出显示了一个目标(MFE、MFETests等)。如果突出显示您的项目(如屏幕截图中所示),它们将被启用。
#2
17
You can use alt(option) and click on either, run, test or profile to see the option. Here you can set the target for each option.
您可以使用alt(选项),然后单击,运行,测试或配置文件来查看选项。在这里,您可以为每个选项设置目标。
For Archive the release is normally used, since can you resign your app via the organizer there is no need ad-hoc and appstore target any more.
对于存档,通常使用发布版本,因为你可以通过组织者退出你的应用,不再需要特别和appstore目标。
#3
2
For part 1 of your question,
对于你问题的第一部分,
The configuration is set in the schema window. apple+shift+comma to get to the window. Or Product > Scheme > Manage Schemes from the menu bar.
配置在模式窗口中设置。苹果+shift+逗号进入窗口。或产品>方案>管理方案从菜单栏。
In the window, click the type of build you want on the left panel: Build, Run, Profile, Analyze, or Archive. In the window tab usually, along the type, there is an option Build Configuration that can be set. Select Debug, Release, or whichever configuration you want there.
在窗口中,单击左侧面板上所需的构建类型:构建、运行、概要文件、分析或归档。在window选项卡中,通常会有一个可以设置的选项构建配置。
The exception if the build task. The build task uses whatever configuration is set for the Run task. Also, the analyze and archive tasks only have one tab, so using the info tab is not necessity.
构建任务时的异常。构建任务使用为运行任务设置的任何配置。而且,分析和归档任务只有一个选项卡,所以使用info选项卡不是必须的。
Apparently, "build" is shorthand for "build for run"...
显然,“构建”是“运行构建”的简写……