I must be missing something obvious, but I can\'t figure out how to rename my project in Xcode 4.
If I remember correctly Xcode 3 had a dedicated menu item for this
From Apple: iOS Developer Library Technical Q&A QA1625
Follow these steps to rename your application in Xcode 4.0 or later:
- In Xcode, select your target under "Targets" in the project editor, then choose View > Utilities > Show File Inspector.
- Xcode opens the file inspector pane. Enter your application's new name in the Project Name field as shown in Figure 1, then hit the return key on your keyboard.
- Xcode displays a project-rename dialog that contains all the items that can be renamed in your project. Leave your application selected in the dialog and deselect all other items as shown in Figure 2, then click Rename to perform the rename operation.
None of these worked for me. The reason was that in Finder I had already manually changed oldAppName.xcodeproj to
newAppName.xcodeproj
with the new name, so when I tried to edit the Project Name in Xcode 4, I got an error that it couldn't save newAppName.xcodeproj since it already existed. The solution was to change, using Finder, newAppName.xcodeproj to
anyOtherName.xcodeproj,
and then I was able to edit the project name in Xcode and Xcode renamed the anyOtherName.xcodeproj to newAppName.xcodeproj.
Open Navigator with shift command j. Its not the strip on the left, its on the right.
I encounter this problem too. What I do is that I just change the name of TARGETS. Then the name displayed on iPhone or simulator changes. The names of files in project don't change. Just try this way.
Another option - Move the cursor on project name. Hit Enter. The project name becomes editable.
Well, it turned out to be a trivial matter indeed.
All you need to do is click twice slowly on the project root in the project navigator and it then becomes editable. After you rename the project and press 'enter' it will suggest to automatically change all project-name-related entries and will allow you to de-select some of them if you want.
Nice.