1.添加pch文件 2、修改工程配置文件 Building Settings->All->Apple LLVM 6.0 -Language -> Prefix Header 转载于:https://www.cnblogs.com/SimonGao/p/4670712.html