Xcode configuration. pch File

Source: Internet
Author: User

--to Xcode7 can solve this problem. Test.

Find a good thing. This is the. pch file. My understanding is that he has stored the header files that we need in each controller, which eliminates the problem of importing the header files of different resources (such as third-party libraries) in different viewcontroller.

First, on the Internet, we need to create such a. pch file in Xcode6. Steps:

Project right--New File--ios column Select other--Select PCH file

Then define the properties we need to use in the PCH file.

The final step, the most important to configure in the project.

1. Set the Precompile Prefix header to Yes;

2. Write its absolute path in the prefix header. Re: Absolute path yo. I started to put a relative path $ (srcroot)/pch file name. pch. The results found that the project was still an error.

The absolute path is how we fill it out.

Teach One method: Open the terminal. Drag the. pch file from your project into the terminal. Then copy the path--fill in the project.

Xcode configuration. 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.