XCode 7 编译多个目标

XCode 7 compile multiple targets

是否可以一键编译多个目标?我有 2 个目标,但即使这样在迭代时切换和编译也很麻烦。

正如苹果官方开发者网站指出的那样,当您从产品菜单中选择 运行、测试、配置文件、分析或存档时,您可以编辑构建方案以确定构建哪些目标。
所以请尝试按照以下步骤操作:

From the Scheme toolbar menu, choose a scheme and run destination.

From the same menu, choose Edit Scheme to display the scheme dialog.

In the left column, select Build.

For each target, select the actions for which to build the target.

Click Close.

就是这样。有关更多信息,请查看此 link.