1.) Open your Xcode project. Under the supporting files directory, select File > New > File > IOS > Other > PCH File and click Next.
2.) Give your PCH file a name testdemo-prefix.pch. For example, your project name is Testdemo, but the name of your PCH file should be testdemo-prefix.pch and then created;
3.) Select the PCH file (the example file for the article is testdemo-prefix.pch) and you can see the contents as follows:
4.) Find Project > Build Settings > Search "Prefix Header";
5.) "Apple LLVM 7.0-language″ column you will see the Prefix Header keyword;
6.) Input: yourprojectname/yourproject-prefix.pch (e.g. testdemo/testdemo-prefix.pch);
7.), the Precompile Prefix header is yes, the precompiled PCH file will be cached and the compilation speed can be increased. The effect is as follows
8.) Clean and build your project.
That's it! done! Now you can use your PCH file just as you would with the old version of Xcode.
Xcode add PCH File