How to duplicate target from Xcode 5?

11,521

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.

Xcode Proj settings

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

XCode Proj setting 2

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:

enter image description here

Solution 4

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

Share:
11,521

Related videos on Youtube

Forrest
Author by

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, 2022

Comments

  • Forrest
    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
    Chris Garrett over 10 years
    I'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
    Grzegorz Krukowski over 10 years
    moncefbelyamani.com/images/duplicate-target-in-xcode.jpg I still have it here in my Xcode 5.
  • Chris Garrett
    Chris Garrett over 10 years
    That'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
    Grzegorz Krukowski over 10 years
    Yeah maybe this is from 4.0 but anyways I have the same in 5 :)
  • Daij-Djan
    Daij-Djan over 10 years
    it IS still there in 5 but the whole 4 vs 5 mixup in this answer makes it a little 'weird'
  • Rob
    Rob over 10 years
    groans, why do they go to such lengths to hide what you need? Thank you very much
  • carbonr
    carbonr about 10 years
    an image would be more understanding
  • Paul Brewczynski
    Paul Brewczynski about 9 years
    NOTE: You would probably want to change the "Product name" -> Go to the "Build settings" in this target and search for "Product name".
  • Stewart Macdonald
    Stewart Macdonald about 9 years
    Screenshots make this so much easier. Thanks!