When I started iPhone Development recently, I encountered a small problem, that is, how to modify the name of my project. All Versions earlier than xcode3.2 must be manually modified.Xcode Rename changes under the project.
Next I will explain howXcode Modify the configuration in version 3.1.
-
- InXcode Close the project you want to modify. It is best to close it first.Xcode .
-
- Copy your project and copy and paste the project to get a copy folder.
-
- Modify the name of the copy folder, that is, the name of the project you want.
-
- Open the folder, find the file with the suffix ". xcodeproject", and rename it.
-
- Delete the "build" folder and all files in it.
-
- Then open the file with the suffix ". xcodeproject", which is the same as the previous project.
- InXcode In the "groups & Files" list on the left, find the file named "*-info. plist" and change its name.
-
- Modify the name of the file with the suffix * _ prefix. PCH.
-
- Expand the "targets" group, double-click the target file name, and modify its name in the "General"-tab. In the "build" tab, modify the project name (for all configurations). If the project name is changed, the file name suffixed with. app is automatically modified. In the build tab, modify "*-info. plist" and * _ prefix. PCH (prefix header value ).
-
- InXcode Clean all targets.
-
- Finally, build and go. In this way, the project name is modified.