The. h header file cannot be introduced to the IOS Prefix. pch file.

Source: Internet
Author: User

We know that you can use the Prefix. pch file in the IOS project to perform some pre-compilation operations, such as introducing global header files and defining constants. I encountered an incredible problem when I was preparing to write a Demo today. No matter how I did it, introducing the header file in the pch file would result in an error, saying that the file could not be found, however, why can't I find all the file names I typed out using the auto-HELP function. After a detailed analysis, I found that the problem was that I used brackets ...... The normal method for introducing files is import "xxx. h "www.2cto.com, And when I import files, the default system package is imported before copying: import <xxx. h> This is the blood caused by Angle brackets. Angle brackets indicate that the system package is referenced, and double quotation marks indicate that the content in the project folder is introduced. Therefore, an error will be reported during compilation.

Related Article

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.