So I renamed my XCode 4.6.3 project in this manner:
I closed XCode and renamed the workspace in the physical directory.
I also renamed the project folder
I opened XCode and renamed the project folder in the virtual directory.
I tried to redirect the path in the Identity Inspector to relink the folders as described in this SO question: Renaming xcode 4 project and the actual folder. However, the links remained red. So I tried the approach in the second answer in that same question which is: ..1.. From the Finder, open the .pbxproj file inside project bundle (context menu "Show Package Contents") with any text editor. ..2.. Search and replace any occurrence of the original folder name with the new folder name.
This worked. The virtual links became black instead of red and the project compiled and ran.
HOWEVER, now I have 47 Use of undeclared identifier
errors regarding not finding classes or constants. The project runs fine, and the classes exist and the filenames are black, but it's annoying to see all of those and it prevents me from realizing when there is a legitimate error.
Cleaning does nothing. Closing and reopening XCode will results in one build without any errors, but the next build will show the Use of undeclared identifier
errors.