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.

  1. Copy/rename the folder into new name
  2. Get inside the new folder and rename the .pch and .xcodeproj files
  3. Delete the build folder
  4. Open .xcodeproj file in text editor, like TextMate or TextWrangler. That’s actually a folder, which contains 4 files (you can also right-click and do Show package contents, which will reveal the files)
  5. Open project.pbxproj in text editor and replace all instances of the old name with the new name
  6. Load the project file in XCode, do Build/Clean all targets
  7. 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.