|
<div class="post single">How to rename project in Xcode 3.x
I thought this would be a simple thing to do, but apparently not.There’s no option to copy the state of the project as it is andcontinue working on it under the new name. The reason I need this isthat I’m going through AAron Hillegass’s Cocoa Programming for Mac OS X, 3rd ed.and some of the projects span several chapters, each introducing newconcepts. Thus I wanted to have each in the state it was at the end ofthe chapter, than compare and analyze the differences, to betterunderstand what’s new and improved.
Since no option, we go with manual work.
- Copy/rename the folder into new name
- Get inside the new folder and rename the .pch and .xcodeproj files
- Delete the build folder
- Open .xcodeproj file in text editor, like TextMate orTextWrangler. That’s actually a folder, which contains 4 files (you canalso right-click and do Show 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
Now it should be ready for new build, under new name.
VIA http://aplus.rs/cocoa/how-to-rename-project-in-xcode-3x/ |
|