在x-code中添加全局变量 创建PCH 文件 命名为项目名+_prefix 选择target 在项目中将precompile Prefix header 设为yes 。 prefix header 设为项目名/文件名