1. Open the Xcode 7.2 Project, on the toolbar at the top of the screen, select File>new>file. >IOS>OTHER>PCH File, click "Next" Next
2. File name, if the project name is "ABC", then the PCH file name is "Abc-prefix.pch",
3. The content of the newly created PCH file is as follows;
4. Click Project projet> Bulid Settings > Search "Prefix Header";
5. After searching, locate the Apple LLVM 7.0-language > Double-click the Prefix Header;
6. Enter PROJECTNAME/PROJECTNAME-PREFIX.PCH. Just like the "abc/abc-prefix.pch" we created;
7. Set the Precomplie Prefix Header to Yes, and the precompiled PCH file will be cached to improve compilation speed.
8.Clean and Build Project Project
Note: $ (srcroot) is now invalid, so set to a relative path in the project folder, such as project name/project name-PREFIX.PCH. Also, simply dragging the PCH file into the header generates an absolute path rather than a relative path;
PS: Thank the original author, looked for several, this just get it done. If it's helpful to you, go and give the original author a reward.
Text/Dongshen Notes "Jane book author"
Original link: Xcode7 add pch File
Copyright belongs to the author, please contact the author to obtain authorization, and Mark "book author".
Xcode7 Creating a PCH File