Xcode add PCH File

Source: Internet
Author: User

1.) Open your Xcode project. Under the supporting files directory, select File > New > File > IOS > Other > PCH File and click Next.

2.) Give your PCH file a name testdemo-prefix.pch. For example, your project name is Testdemo, but the name of your PCH file should be testdemo-prefix.pch and then created;

3.) Select the PCH file (the example file for the article is testdemo-prefix.pch) and you can see the contents as follows:

4.) Find Project > Build Settings > Search "Prefix Header";

5.) "Apple LLVM 7.0-language″ column you will see the Prefix Header keyword;

6.) Input: yourprojectname/yourproject-prefix.pch (e.g. testdemo/testdemo-prefix.pch);

7.), the Precompile Prefix header is yes, the precompiled PCH file will be cached and the compilation speed can be increased. The effect is as follows

8.) Clean and build your project.

That's it! done! Now you can use your PCH file just as you would with the old version of Xcode.

Xcode add PCH File

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.