Renaming a Project
Well today I decided on the name for my app and I needed to rename the project to match.
I found this link which was very helpful. http://aplus.rs/cocoa/how-to-rename-project-in-xcode-3x/
This is the main part of the post, however he forgot a couple of crucial steps, see step 7.
- Copy/rename the folder into new name
- Get inside the new folder and rename the
.pchand.xcodeprojfiles - Delete the build folder
- Open
.xcodeprojfile in text editor, like TextMate or TextWrangler. That’s actually a folder, which contains 4 files (you can also right-click and doShow package contents, which will reveal the files) - Open project.pbxproj in text editor and replace all instances of the old name with the new name
- Load the project file in XCode, do
Build/Clean all targets - Open all class files and xib files and do a search and replace of the old name for the new name. Don’t forget mainWindow.xib like I did initially.