1,File -->new file 选择 ios/mac  -->Other -->PCH File 输入pch文件名;

在Xcode 6中创建PCH文件

2,选择Project --> Build Settings,然后搜索:Prefix Header在Apple LLVM6.0分组中可以看到Prefix Header ,然后输入YourProjectName/YourProject-Prefix.pch  

在Xcode 6中创建PCH文件

3,clean工程;Product -->clean;

4,编译项目;Product -->Build;


转载于:https://my.oschina.net/u/936286/blog/342076

相关文章: