--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