Xcode version: 6.3.2
Purpose: Rename the Demo1 project to Demo2
1, double-click the project name, two double-click time interval slightly longer, change demo1 to Demo2, select Rename,enable
After modification
2, click Product->scheme->manage Schemes, in the popup window to modify the schemes properties of the project, double-click Demo1, the same two times the time interval slightly longer, modify it to Demo2, and then close, such as
At this point you will find that the project has become a Mac project
At this time click on the gear-like Demo2, choose Edit Scheme, in Run,info under the executable select Demo2, such as
3, click the Demo1 file group in the Xcode navigation area, Show in Finder, rename the Demo1 folder to Demo2
It is to be found that the project file becomes red, such as
Select the Demo1 group, rename the name to Demo2 in the identity and type on the right side of Xcode, and click the Small folder icon behind the location to relocate to the Demo2 folder, and the project file disappears red
4, similarly modify the demo1tests filegroup
5, this time can not find the Info file, click Choose Info.plist File, add files, be careful not to choose the wrong
6, Next rename the demo1tests.m file to DEMO2TESTS.M, and in the demo2tests.m file, select Demo1tests Right-click Refactor->rename, rename to Demo2tests, Click Preview->save, as
7, in the targets of Xcode, select Packaging under Demo2tests,building setting, and modify the Info.plist file file location to Demo2tests/info.plist, as
8, the last point to note is that if the project contains PCH files, you need to modify the location of the PCH file, as
iOS Project rename