How do I rename a project in Xcode 5?

Well, the answer is very very very Apple simple in Xcode 5! In the Project Navigator on the left side, click 2 x slowly and the Project file name will be editable. Type the new name. A sheet will appear with a warning and will list all the items Xcode 5 believes it should change. You can probably trust it, but you should inspect it. The list will include the info.plist and various files, but also all the relevant strings from nib/xib files like MainMenu menus.

Accept the changes and you will get the prompt to save a snapshot of the project. Always make a snapshot when Xcode asks, it will be useful to restore if something does not work.


Change the project name:-

  1. Click on the target in xcode, on the right in "Identify and Type" under name change the name and press the ENTER button on your keyboard.
  2. A window will appear confirming the change and what it will change. Once you confirm it will make the changes.

Change the root folder name:-

  1. Go to the project directory and rename the root folder,
  2. Open the project and u will find all the file are missing, u need to add all the files of project again
  3. Right click the project bundle .xcodeproj file and select “Show Package Contents” from the context menu. Open the .pbxproj file with any text editor. 4>Search and replace any occurrence of the original folder name with the new folder name. 5>Save the file.

Change the Scheme name:-

  1. rename .xscheme file enter image description here

If your Project is static framework then make sure your header file has public target membership

Tags:

Xcode

Xcode5