如何从 Xcode 5 复制目标?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19290143/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 04:03:59  来源:igfitidea点击:

How to duplicate target from Xcode 5?

iosxcodeios7xcode5

提问by Forrest

Seem like this feature was removed from xcode 5 ?

似乎此功能已从 xcode 5 中删除?

Prior to xcode5, it is easy to duplicate any target via clicking on the target, choose "duplicated blabla", then you will get it.

在xcode5之前,通过点击目标很容易复制任何目标,选择“duplicated blabla”,然后你就会得到它。

But for xcode5 , where is this hiding ?

但是对于 xcode5 来说,这个隐藏在哪里?

回答by HDdeveloper

Step1:Select the (blue) project icon in Xcode and open project setting page.

Step1:在Xcode中选择(蓝色)项目图标,打开项目设置页面。

Xcode Proj settings

Xcode 项目设置

Step2:Click on the black arrow icon and explore the targets

Step2:点击黑色箭头图标并探索目标

XCode Proj setting 2

XCode 项目设置 2

Step 3: Duplicate your target by selecting the target and press "cmd+D" keys. You can rename as you like.

第 3 步:通过选择目标并按“cmd+D”键来复制目标。您可以随意重命名。

Enjoy!!

享受!!

回答by pete-01

Select your project in the left nav. In the main content area at the top, you have a row that is like a file navigator. Then the second row, right under the first, in the very left there is a little square arrow thing. That hides/shows the project and targets list.

在左侧导航中选择您的项目。在顶部的主要内容区域中,您有一行类似于文件导航器。然后是第二行,就在第一行的正下方,在最左边有一个小方箭头。隐藏/显示项目和目标列表。

回答by Barka

This is the screenshot from xcode 6:

这是 xcode 6 的屏幕截图:

enter image description here

在此处输入图片说明

回答by Grzegorz Krukowski

It's still there - right click on target or use CMD + Dshortcut after selecting target

它仍然存在 - 右键单击​​目标或CMD + D选择目标后使用快捷方式