在x-code中添加全局变量

创建PCH 文件 命名为项目名+_prefix 选择target

在项目中将precompile Prefix header 设为yes  。 prefix header 设为项目名/文件名

原文地址:https://www.cnblogs.com/seniormonster/p/5093011.html