How do I add PCH files inside Xcode??

Source: Internet
Author: User

Development Tools/Materials:

1. Mac

2, Xcode (I'm currently using the latest version of Xcode Xcode 7.3)

Part of the history of PCH files:

Definition: PCH is all called "Precompiled Header", which is the precompiled header file , which helps to save development time and code maintenance time .

Development: In the old version of Xcode, after the creation of the project will automatically create a PCH file, in which often write some often used framework header files or some macro-defined URL address , which can be defined in the global use, but in the Xcode6 when the project is created, it no longer comes with the PCH file.

Method/Step:

1. Open Xcode to create the project. Of course, if you already have a project, it is possible to add a PCH file on the original basis, so our code will be more concise. Then find the supporttng files directory and we need to add the PCH file here

2. In this directory, press COMMAND + N to create the file, locate the PCH file under other in iOS, then click Next and follow the prompts to create it.

3, follow the following introduction, continue to operate

4, change the tick Select, change fill Fill, the last greate can be.

How do I add PCH files inside Xcode??

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.