Search:

Tuesday, September 22, 2009

Rename an Xcode Project

To rename an Xcode project,

1. Close the project in Xcode
2. Duplicate the project directory in the Finder by pressing Command-D.
3. Rename the folder
4. Open the folder and rename the “.xcodeproject” file
5. Delete the “Build” sub folder, if there is one
6. Open the renamed .xcodeproject file
7. On the left in the “Groups&Files” list, expand the “Targets” group, double click on the target that still has your old project filename. Rename it under the “General”-tab in the window that opens.
8. Select “Clean all targets” from the “Build” menu, keep the boxes checked, and click “Clean”.
9. Build and run your project.

Now about the second problem:

1. In Xcode, on the left in the “Groups&Files” list, expand the “Resources” group, and click on “Info.plist”. In the editor on the right you’ll see a lot of entries of this plist file.
2. Go down to the “CFBundleVersion”-entry and enter your version number, e.g., “0.3″
3. Next, on the left select “InfoPlist.strings”. In the editor on the right, you’ll see an entry for “NSHumanReadableCopyright”.
4. Enter your information between the quotes, e.g., “(c) Toby Junker, 2008″
5. Finally, double-click your target (the one you renamed above), select the “Build”-tab in the window that opens, and scroll down until you find “Product Name”. This will have the original name of your “Xcode Project” (before you renamed it). Choose a name w/o version number, e.g., “FracGen”. You will not have to change this again.

No comments: