How to duplicate target from Xcode 5?
Solution 1
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.
Solution 2
Step1: Select the (blue) project icon in Xcode and open project setting page.
Step2: Click on the black arrow icon and explore the targets
Step 3: Duplicate your target by selecting the target and press "cmd+D" keys. You can rename as you like.
Enjoy!!
Solution 3
This is the screenshot from xcode 6:
Solution 4
It's still there - right click on target or use CMD + D
shortcut after selecting target
Related videos on Youtube
Forrest
iOS developer with 10+ years software building experience Shanghai,China Skype: forrest.shi.ef Recent App: PushUp! https://itunes.apple.com/us/app/pushup!/id750845921?mt=8
Updated on July 01, 2022Comments
-
Forrest almost 2 years
Seem like this feature was removed from 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.
But for xcode5 , where is this hiding ?
-
Chris Garrett over 10 yearsI'm missing something, because I don't see this option. You're right clicking on the target in the project navigator, or somewhere else?
-
Grzegorz Krukowski over 10 yearsmoncefbelyamani.com/images/duplicate-target-in-xcode.jpg I still have it here in my Xcode 5.
-
Chris Garrett over 10 yearsThat's a screenshot of XCode 4.x, not XCode 5. Go to the menu Xcode -> About XCode to see what version you're on.
-
Grzegorz Krukowski over 10 yearsYeah maybe this is from 4.0 but anyways I have the same in 5 :)
-
Daij-Djan over 10 yearsit IS still there in 5 but the whole 4 vs 5 mixup in this answer makes it a little 'weird'
-
Rob over 10 yearsgroans, why do they go to such lengths to hide what you need? Thank you very much
-
carbonr about 10 yearsan image would be more understanding
-
Paul Brewczynski about 9 yearsNOTE: You would probably want to change the "Product name" -> Go to the "Build settings" in this target and search for "Product name".
-
Stewart Macdonald about 9 yearsScreenshots make this so much easier. Thanks!