Reference: http://blog.csdn.net/lwjok2007/article/details/46385595http://www.tuicool.com/articles/beURbehttp:// blog.csdn.net/gjt19910817/article/details/7200702 function: Write some common header files and macro definitions inside, just like a global variable, you can access the information inside the precompiled file in the required file. : Precompiled header file greatly increase the time of build, no precompiled header file, it is necessary to manually pour the @import manually into the header file, in the loss of compilation convenience while also reducing the build time, but will precompile Prefix header is yes, Pre-compiled PCH files are cached and can improve compilation speed. To create a step:
- Created: PCH file, IOS, other
- Configuration: Add "$ (srcroot)/project name/PCH filename" to the path in the precompile header option in building setting, and you can compile it to check if the path you added is correct
- Set the Precimpile Prefix header to Yes
Precompile Prefix file (. pch files)