iOS Project rename

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.