1、新建文件:iOS —>other—>PCH file,创建一个pch文件 2、在building setting中的Prefix Herder选项添加的代码: $(SRCROOT)/首款应用(工程名称)/PrefixHeader.pch(pch文件名)