xcode6中如何添加pch文件

来源:互联网 发布:mac air教程视频 编辑:程序博客网 时间:2024/04/28 05:36
Command+N,打开新建文件窗口:ios->other->PCH file,创建一个pch文件,添加需要引入的头文件名:


其次,修改工程配置文件,将刚刚创建的PCH file的路径添加到building setting中的precompile header选项中去,注意debug和release两栏都要添加:




0 0
原创粉丝点击