1,File -->new file 选择 ios/mac -->Other -->PCH File 输入pch文件名;
2,选择Project --> Build Settings,然后搜索:Prefix Header在Apple LLVM6.0分组中可以看到Prefix Header ,然后输入YourProjectName/YourProject-Prefix.pch
3,clean工程;Product -->clean;
4,编译项目;Product -->Build;
来源:oschina
链接:https://my.oschina.net/u/936286/blog/342076