Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

With XCode 8.x how do you clone an existing target?

Tags:

ios

xcode8

With XCode 6.4 I could easily clone an existing target. However this functionality doesn't seem to be available in XCode 8.x. Does anyone know how to do it?

like image 692
user1309226 Avatar asked Jan 13 '17 22:01

user1309226


People also ask

How do I duplicate a target in Xcode?

Select your target, right-click on it, then select Duplicate .

Can you duplicate an Xcode project?

Duplicating an Xcode ProjectIn Xcode, rename the project. Select your project from the navigator pane (left pane). In the Utilities pane (right pane) rename your project, Accept the changes Xcode proposes.

How do I change target iOS in Xcode?

To change your deployment target, open up your project file in Xcode and check the setting under Build Settings -> Deployment(...) Check this answer to add earlier devices support.


2 Answers

Select your target, right-click on it, then select Duplicate.

enter image description here

As you can see - the project now has 2 targets:

enter image description here

like image 197
Evgeny Karkan Avatar answered Dec 22 '22 14:12

Evgeny Karkan


I could not figure out what I was missing. The above answer is missing a step. The panel where you can duplicate targets is probably hidden.

enter image description here

Click the side panel button to see the targets.

Now you can see the targets and right click to duplicate, then just click on the name and rename it. Much easier.

enter image description here

like image 40
Joshua Dance Avatar answered Dec 22 '22 14:12

Joshua Dance