There will always be several projects, and the project name is required to be changed when the project is half done. Relevant information is found online, most of which are versions earlier than xcode5, so I will mark the solution here, to the person in need.
Objective: to change the project name xcd4 to xcd5.
First, the result graph is: =
1. Click the project name twice in the left-side navigation area. The interval between the two items is a little longer and the project name becomes editable.
After changing the name to xcd5, press enter to bring up a dialog box. Click rename with confidence. In the dialog box that appears, click Enable and OK. Step 1 is complete.
2. Click Product => scheme => Manage schemes and modify the schemes attribute of the project in the pop-up window.
Double-click xcd4. the interval is a little longer. After activation, change the name to xcd5. After modification, click the blank area and then click OK.
After the modification is successful, it will be shown in:
3. Right-click the file group named xcd4 in the navigation area, select Show in finder, and change xcd4 to xcd5.
Return to the xcode interface. All files under xcd4. therefore, select the xcd4 file group and change its name attribute to xcd5 In the checker, click a small folder image under location, and select the folder modified to xcd5. The red text disappears.
4. Use the same method to change xcd4tests to xcd5tests. Select the xcd4tests. M file under the xcd5tests file group, right-click xcd4tests in the @ interface field, and choose refactor => rename ,.
If the xcd4tests. M file cannot be found in the pop-up box, close the project and re-open it.
Click Preview and save.
Change the name attribute of xcd4tests. m to xcd5tests. M.
5. Run the project. An error is displayed. The prefix. PCH file cannot be found.
Click project, and then click building settings, modify the prefix header path, and change xcd4/xcd5-Prefix.pch to xcd5/xcd5-Prefix.pch.
6. compile again, and an error is prompted, indicating that info cannot be found. in the plist file, click building settings ==> packaging and modify info. plist file path, change xcd4/xcd5-Info.plist to xcd5/xcd5-Info.plist.
Compile again and pass the test. This is all done.
For more information, see http://www.cnblogs.com/tbfirstone/p/3601541.html.