33

I created a project and fully developed it. Now, I need to change the name of the project and targets.

Is there an easy way to rename the project and targets? Or should I just create a new project (with the new name) and copy all of the items from the existing project into that new project?

0

1 Answer 1

61

You can change the project name by clicking on the project name at the top of the left sidebar and then entering a new name under the Identity on the right sidebar and finally pressing Return.

Sign up to request clarification or add additional context in comments.

6 Comments

Changing the target name is just as simple. Click on the project name at the top left, then select a target name on the right pane followed by pressing "Enter". Type in the new name.
Note that in Xcode 5, the center editor pane's menu bar (where you see General, Capabilities, Info, etc) has a little "play" triangle icon that shows/hides the Projects and Targets List pane. You have to click that to open it, then you can long-click an item to change its name.
Something else worth mentioning is that after doing this I had to recreate the schemes (Edit Schemes->Autocreate Schemes Now)
@Alan, in Xcode 6, this was changed to a square icon, with a bolded line on the left side.
I was switching between Windows and OSX a lot and I accidentally pressed ALT-Tab in the target name for my app and Xcode made the target name blank. It wouldn't let me rename it after that. Very frustrating.
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.