Renaming projects in Xcode 4
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 but there's no such entry in Xcode 4.
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.
Another option - Move the cursor on project name. Hit Enter. The project name becomes editable.
In addition to renaming the project, you may want rename the scheme so that it matches your new project name.
To change the name of your scheme:
Product ==> Manage Schemes...
Then select your scheme and hit return/enter to edit the name.
Alternatively, Product ==> New Scheme...
to create a new one with your new name :)
上一篇: 使用Xcode 4创建通用二进制文件
下一篇: 在Xcode 4中重命名项目