1,File -->new file 選擇 ios/mac -->Other -->PCH File 輸入pch文件名;ios
2,選擇Project --> Build Settings,而後搜索:Prefix Header在Apple LLVM6.0分組中能夠看到Prefix Header ,而後輸入YourProjectName/YourProject-Prefix.pch ui
3,clean工程;Product -->clean;io
4,編譯項目;Product -->Build;編譯