Xcode6中添加pch全局引用文件

前沿:xcode6中去掉了pch,为了一些琐碎的头文件引用,加快了 编译速度!xcode

xcode6添加pch文件方法ui

1. 右键Supporting File,选择“New File” spa

 

 

2. 选择Others——“PCH File”code

3. 输入新建立的pch文件的名称blog

 

4. 配置当前编译环境,引用pch File.编译

依次点击“控制面板”——“Build Settings” ——“Apple LLVM7.0 - Language” ,双击“Prefix Header” 右侧的空白区域,再把新建立的pch文件拖到弹出的输入框中便可。配置

相关文章
相关标签/搜索